Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DbConnectionPoolGroup.cs
- SlotInfo.cs
- GridItemPattern.cs
- EntitySetBaseCollection.cs
- RowVisual.cs
- TreeNode.cs
- SingleStorage.cs
- XhtmlBasicPageAdapter.cs
- PeerApplicationLaunchInfo.cs
- ConnectionStringsExpressionBuilder.cs
- GPPOINTF.cs
- PowerStatus.cs
- EnumValAlphaComparer.cs
- _NetRes.cs
- PreviousTrackingServiceAttribute.cs
- PointUtil.cs
- DoubleLinkListEnumerator.cs
- IgnoreSection.cs
- XsltLoader.cs
- RenderOptions.cs
- DocumentApplicationJournalEntry.cs
- WinFormsSecurity.cs
- Vector3dCollection.cs
- FreezableOperations.cs
- CodeIdentifier.cs
- ErrorTableItemStyle.cs
- Filter.cs
- MessageQueueAccessControlEntry.cs
- PeerObject.cs
- LinkButton.cs
- SerializationEventsCache.cs
- CalloutQueueItem.cs
- TreeViewAutomationPeer.cs
- ReferencedAssembly.cs
- SQLUtility.cs
- MeasurementDCInfo.cs
- WebSysDisplayNameAttribute.cs
- ConstraintManager.cs
- DesignTimeTemplateParser.cs
- TrustManagerPromptUI.cs
- ChannelServices.cs
- DesigntimeLicenseContext.cs
- PointConverter.cs
- SqlSelectStatement.cs
- ColorContext.cs
- ProcessManager.cs
- DataGridColumnCollection.cs
- AssemblyName.cs
- EdmSchemaAttribute.cs
- _ListenerRequestStream.cs
- WebPartConnectionCollection.cs
- X509RawDataKeyIdentifierClause.cs
- StateFinalizationDesigner.cs
- SocketInformation.cs
- FlatButtonAppearance.cs
- TableLayout.cs
- WebPartVerbCollection.cs
- PropertyGeneratedEventArgs.cs
- ConnectionManagementElement.cs
- FixedFlowMap.cs
- AppDomainCompilerProxy.cs
- COM2PictureConverter.cs
- XPathDocumentNavigator.cs
- DetailsViewRow.cs
- BasePattern.cs
- DebuggerAttributes.cs
- HttpModuleCollection.cs
- DistinctQueryOperator.cs
- GreaterThan.cs
- CodeSubDirectory.cs
- WebPartDescription.cs
- PageRanges.cs
- FileLevelControlBuilderAttribute.cs
- XmlIncludeAttribute.cs
- HttpCacheVary.cs
- DropShadowBitmapEffect.cs
- WsatConfiguration.cs
- DataGridItemCollection.cs
- HttpApplicationStateWrapper.cs
- DesignerAutoFormatStyle.cs
- XamlPointCollectionSerializer.cs
- Pkcs7Recipient.cs
- OrCondition.cs
- EdmType.cs
- Unit.cs
- MemberAccessException.cs
- BaseDataList.cs
- ToolboxItemFilterAttribute.cs
- ToolTipAutomationPeer.cs
- Win32MouseDevice.cs
- DefaultPropertyAttribute.cs
- BaseTemplateParser.cs
- ColumnResizeAdorner.cs
- TextTreeFixupNode.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ObjectPropertyMapping.cs
- BrowserCapabilitiesCompiler.cs
- HtmlElementEventArgs.cs
- TreeViewCancelEvent.cs
- TextParagraphView.cs