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
- ConfigXmlElement.cs
- ScrollBarRenderer.cs
- WebRequestModuleElement.cs
- DataGridTableStyleMappingNameEditor.cs
- TextTreeInsertUndoUnit.cs
- UnsafePeerToPeerMethods.cs
- AlphabetConverter.cs
- TryExpression.cs
- BaseParser.cs
- EventMap.cs
- AuthorizationPolicyTypeElementCollection.cs
- Positioning.cs
- XmlMtomReader.cs
- WebScriptServiceHost.cs
- BamlCollectionHolder.cs
- ThreadPoolTaskScheduler.cs
- RawStylusInputCustomData.cs
- PathHelper.cs
- InternalDispatchObject.cs
- Color.cs
- ProfileServiceManager.cs
- EntityUtil.cs
- Keywords.cs
- ComboBox.cs
- DropShadowEffect.cs
- TableParaClient.cs
- FileSystemWatcher.cs
- DrawTreeNodeEventArgs.cs
- SocketAddress.cs
- Contracts.cs
- ElapsedEventArgs.cs
- DelegateSerializationHolder.cs
- PrimitiveXmlSerializers.cs
- StrokeDescriptor.cs
- EncoderNLS.cs
- AssemblyUtil.cs
- SafeNativeMethods.cs
- XslUrlEditor.cs
- Process.cs
- fixedPageContentExtractor.cs
- UIElement.cs
- SerTrace.cs
- SmtpReplyReader.cs
- WebPartEventArgs.cs
- CommonProperties.cs
- RotateTransform3D.cs
- UserControl.cs
- AspProxy.cs
- XMLSyntaxException.cs
- BitmapPalettes.cs
- ACE.cs
- HttpPostedFile.cs
- Geometry3D.cs
- ISAPIRuntime.cs
- ThreadAbortException.cs
- PropertySourceInfo.cs
- ToolboxItemCollection.cs
- Accessors.cs
- Win32.cs
- HybridDictionary.cs
- ConnectorSelectionGlyph.cs
- DefaultValidator.cs
- SqlServer2KCompatibilityAnnotation.cs
- EdmComplexTypeAttribute.cs
- CompilationPass2TaskInternal.cs
- MimeBasePart.cs
- ToolStripButton.cs
- IISMapPath.cs
- RecordManager.cs
- ThreadAbortException.cs
- Vector3DConverter.cs
- DetailsViewUpdatedEventArgs.cs
- HMACSHA256.cs
- WorkerRequest.cs
- TransactionBridgeSection.cs
- PersonalizationAdministration.cs
- ScriptRef.cs
- Sql8ConformanceChecker.cs
- ApplicationId.cs
- HostProtectionPermission.cs
- PagesSection.cs
- DecoderFallbackWithFailureFlag.cs
- TemplateBindingExpression.cs
- DefinitionUpdate.cs
- MarginCollapsingState.cs
- OperandQuery.cs
- SqlGatherConsumedAliases.cs
- DetailsView.cs
- DBCommandBuilder.cs
- PresentationSource.cs
- VersionedStream.cs
- CharacterString.cs
- DataBindEngine.cs
- UIElement.cs
- XmlSchemaImporter.cs
- OracleLob.cs
- HitTestWithPointDrawingContextWalker.cs
- StaticExtension.cs
- DataGridAutoFormatDialog.cs
- StylusButton.cs