Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1 / DataBindingHandlerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompositeKey.cs
- GatewayDefinition.cs
- AmbientLight.cs
- ConfigurationSchemaErrors.cs
- BitmapFrameDecode.cs
- FormsIdentity.cs
- TextOnlyOutput.cs
- InvalidPropValue.cs
- TextContainerHelper.cs
- WinEventQueueItem.cs
- Exceptions.cs
- LockedHandleGlyph.cs
- ControllableStoryboardAction.cs
- DragDrop.cs
- DbConnectionPoolIdentity.cs
- DBSchemaRow.cs
- RowUpdatingEventArgs.cs
- DelegatedStream.cs
- Type.cs
- PageCache.cs
- MULTI_QI.cs
- ItemCheckedEvent.cs
- HtmlTableRowCollection.cs
- QueueAccessMode.cs
- OleDbSchemaGuid.cs
- XmlHierarchicalDataSourceView.cs
- WebPartConnectionsCancelEventArgs.cs
- IncomingWebResponseContext.cs
- KeyEventArgs.cs
- InternalsVisibleToAttribute.cs
- ColumnResizeUndoUnit.cs
- Enlistment.cs
- XmlSchemaSimpleTypeRestriction.cs
- Mapping.cs
- InstalledFontCollection.cs
- SurrogateEncoder.cs
- DbParameterCollection.cs
- ReadOnlyDataSourceView.cs
- Helper.cs
- ActivationArguments.cs
- WeakReference.cs
- SystemWebSectionGroup.cs
- ActivityTrace.cs
- WorkflowInstanceQuery.cs
- TTSEngineTypes.cs
- Size3DValueSerializer.cs
- ISAPIApplicationHost.cs
- SortQueryOperator.cs
- LogReservationCollection.cs
- DocumentOrderComparer.cs
- dataprotectionpermission.cs
- AnnouncementInnerClientCD1.cs
- MergablePropertyAttribute.cs
- RequestTimeoutManager.cs
- RawStylusInputCustomDataList.cs
- BitmapEffectInputData.cs
- DragDrop.cs
- JournalNavigationScope.cs
- Win32MouseDevice.cs
- ConnectionsZoneDesigner.cs
- StylusPointPropertyId.cs
- XmlNavigatorFilter.cs
- BamlLocalizableResourceKey.cs
- BindingExpression.cs
- SmiXetterAccessMap.cs
- CollectionViewProxy.cs
- DaylightTime.cs
- LOSFormatter.cs
- SByteConverter.cs
- BufferAllocator.cs
- ListViewGroup.cs
- ConfigXmlCDataSection.cs
- SymmetricAlgorithm.cs
- DeferredRunTextReference.cs
- HttpException.cs
- ValidatorCompatibilityHelper.cs
- TemplateBamlTreeBuilder.cs
- DataGridViewElement.cs
- DrawingAttributesDefaultValueFactory.cs
- QilCloneVisitor.cs
- EntityDataSourceDataSelectionPanel.cs
- PasswordPropertyTextAttribute.cs
- TdsParserStaticMethods.cs
- OdbcDataReader.cs
- DataControlButton.cs
- DPCustomTypeDescriptor.cs
- EventLogReader.cs
- HttpValueCollection.cs
- CodeObject.cs
- figurelengthconverter.cs
- CreateDataSourceDialog.cs
- PowerModeChangedEventArgs.cs
- KeyInstance.cs
- CancellableEnumerable.cs
- TypeUnloadedException.cs
- ListenerSingletonConnectionReader.cs
- ControlCachePolicy.cs
- TextChangedEventArgs.cs
- RMEnrollmentPage3.cs
- EntityCommandExecutionException.cs