Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 2 / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OracleCommandBuilder.cs
- CurrencyWrapper.cs
- CharacterBuffer.cs
- _CommandStream.cs
- DescendentsWalkerBase.cs
- DataSvcMapFileSerializer.cs
- PartialClassGenerationTask.cs
- TreeViewEvent.cs
- Matrix3DStack.cs
- AtomicFile.cs
- BamlLocalizabilityResolver.cs
- AssociationTypeEmitter.cs
- CollectionEditVerbManager.cs
- TabItemAutomationPeer.cs
- GlyphCache.cs
- SelectedDatesCollection.cs
- TransformCollection.cs
- StylusCaptureWithinProperty.cs
- MenuItemStyleCollection.cs
- ApplicationSecurityInfo.cs
- DataGridCell.cs
- NotificationContext.cs
- XmlNodeChangedEventArgs.cs
- DataGrid.cs
- TrackingMemoryStreamFactory.cs
- TemplateParser.cs
- MenuEventArgs.cs
- SslStream.cs
- SqlDataSourceSummaryPanel.cs
- SmtpCommands.cs
- SQLBinary.cs
- RemotingConfigParser.cs
- SliderAutomationPeer.cs
- Expression.cs
- InputLanguage.cs
- RelationshipNavigation.cs
- QfeChecker.cs
- RecognizerBase.cs
- XamlSerializerUtil.cs
- EntityFrameworkVersions.cs
- GlyphingCache.cs
- Pkcs9Attribute.cs
- LeaseManager.cs
- HttpRequestBase.cs
- Size.cs
- PathHelper.cs
- RepeaterItemCollection.cs
- ComplexPropertyEntry.cs
- SQLByteStorage.cs
- SHA1CryptoServiceProvider.cs
- DrawingServices.cs
- SafeLocalMemHandle.cs
- CurrentChangingEventManager.cs
- PaintValueEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- XmlWriterSettings.cs
- ObjectDataSource.cs
- RuleEngine.cs
- ArcSegment.cs
- Graph.cs
- Quad.cs
- ClientRolePrincipal.cs
- List.cs
- RightsManagementEncryptionTransform.cs
- login.cs
- CompiledQueryCacheEntry.cs
- Quaternion.cs
- ProvidePropertyAttribute.cs
- AssemblyBuilderData.cs
- FontStretches.cs
- ListChangedEventArgs.cs
- TwoPhaseCommit.cs
- WindowsEditBoxRange.cs
- WorkItem.cs
- BitFlagsGenerator.cs
- MoveSizeWinEventHandler.cs
- DBBindings.cs
- LexicalChunk.cs
- NativeMethodsOther.cs
- RawStylusInputReport.cs
- SchemaMapping.cs
- ConsumerConnectionPointCollection.cs
- Cell.cs
- ColorTransformHelper.cs
- Matrix3DValueSerializer.cs
- RelationshipConverter.cs
- PenThreadPool.cs
- ConfigurationManagerInternalFactory.cs
- DataBinding.cs
- GridViewPageEventArgs.cs
- DecoderExceptionFallback.cs
- SiteMap.cs
- EdmItemError.cs
- ISO2022Encoding.cs
- _ScatterGatherBuffers.cs
- OperationInfoBase.cs
- FormsAuthenticationCredentials.cs
- PasswordBox.cs
- SByteConverter.cs
- MtomMessageEncodingElement.cs