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
- XmlDesignerDataSourceView.cs
- DictionaryChange.cs
- ToolStripPanelRenderEventArgs.cs
- SqlConnectionFactory.cs
- Win32Native.cs
- BooleanSwitch.cs
- SqlClientWrapperSmiStream.cs
- GPStream.cs
- FontWeightConverter.cs
- AvtEvent.cs
- CryptoApi.cs
- MessageBodyDescription.cs
- newitemfactory.cs
- LayoutManager.cs
- ColumnReorderedEventArgs.cs
- CreateUserWizardAutoFormat.cs
- WebResourceUtil.cs
- ThaiBuddhistCalendar.cs
- ReaderOutput.cs
- GroupQuery.cs
- BufferModeSettings.cs
- PowerModeChangedEventArgs.cs
- ClientSettingsSection.cs
- ListContractAdapter.cs
- XsdBuilder.cs
- sqlser.cs
- DynamicExpression.cs
- XmlSubtreeReader.cs
- Debug.cs
- WebControlParameterProxy.cs
- FileInfo.cs
- SByte.cs
- Rss20ItemFormatter.cs
- CatalogPart.cs
- QilInvokeLateBound.cs
- ListMarkerSourceInfo.cs
- SingleAnimationUsingKeyFrames.cs
- AQNBuilder.cs
- GridViewUpdatedEventArgs.cs
- XmlSchemaObjectCollection.cs
- LoginName.cs
- ListMarkerSourceInfo.cs
- IHttpResponseInternal.cs
- XmlDocumentFragment.cs
- CodeObject.cs
- SymmetricKey.cs
- Column.cs
- HttpCookiesSection.cs
- DataSourceCache.cs
- CookieHandler.cs
- UserPersonalizationStateInfo.cs
- XmlWrappingReader.cs
- SpeechSeg.cs
- SecUtil.cs
- ISAPIRuntime.cs
- XmlStreamedByteStreamReader.cs
- TabPageDesigner.cs
- ValueTypeFixupInfo.cs
- ReadOnlyMetadataCollection.cs
- UnicodeEncoding.cs
- WebPartHelpVerb.cs
- ObservableDictionary.cs
- UIHelper.cs
- UTF7Encoding.cs
- PiiTraceSource.cs
- AppSettings.cs
- ServicePrincipalNameElement.cs
- RealProxy.cs
- SqlUserDefinedTypeAttribute.cs
- GPRECTF.cs
- AttributeEmitter.cs
- ExecutionEngineException.cs
- ArgIterator.cs
- EntityViewGenerationAttribute.cs
- EndPoint.cs
- RectangleF.cs
- WindowPattern.cs
- SQLRoleProvider.cs
- HttpProfileBase.cs
- UpdateTranslator.cs
- SafeNativeMethodsMilCoreApi.cs
- RowToFieldTransformer.cs
- BrowserCapabilitiesCodeGenerator.cs
- ValueConversionAttribute.cs
- CoreSwitches.cs
- WorkingDirectoryEditor.cs
- ProfessionalColors.cs
- WebInvokeAttribute.cs
- SmtpSection.cs
- CompModSwitches.cs
- WindowsIdentity.cs
- DataMisalignedException.cs
- _SpnDictionary.cs
- AgileSafeNativeMemoryHandle.cs
- DescendantBaseQuery.cs
- WorkflowRuntimeElement.cs
- Header.cs
- HtmlFormWrapper.cs
- StreamInfo.cs
- JoinCqlBlock.cs