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
- ControlHelper.cs
- IsolatedStoragePermission.cs
- TextLineResult.cs
- TextTreeTextNode.cs
- GridViewEditEventArgs.cs
- LineBreak.cs
- ProvideValueServiceProvider.cs
- HatchBrush.cs
- MailMessage.cs
- QueryExtender.cs
- AuthenticationModulesSection.cs
- XhtmlBasicListAdapter.cs
- SelectionEditor.cs
- MenuItem.cs
- XPathPatternParser.cs
- WindowInteractionStateTracker.cs
- ReadOnlyDictionary.cs
- SQLString.cs
- BooleanToVisibilityConverter.cs
- ServiceThrottlingBehavior.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- FacetValues.cs
- _ListenerAsyncResult.cs
- ArraySortHelper.cs
- BulletedListEventArgs.cs
- DiscoveryVersionConverter.cs
- ReadOnlyObservableCollection.cs
- FieldMetadata.cs
- Registration.cs
- ParenExpr.cs
- WinFormsSpinner.cs
- BreakRecordTable.cs
- GeneralTransform3D.cs
- ComponentCodeDomSerializer.cs
- SrgsSemanticInterpretationTag.cs
- CursorConverter.cs
- XslTransform.cs
- IdentityVerifier.cs
- SetIterators.cs
- ValidationResult.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ErrorWebPart.cs
- DecimalConverter.cs
- TextFormatterImp.cs
- DefaultWorkflowTransactionService.cs
- DataGridViewCellStyleConverter.cs
- RenameRuleObjectDialog.Designer.cs
- CodePageEncoding.cs
- _BufferOffsetSize.cs
- DataServiceQueryContinuation.cs
- ExpandSegmentCollection.cs
- HtmlInputImage.cs
- Object.cs
- LinearQuaternionKeyFrame.cs
- CLRBindingWorker.cs
- CultureInfo.cs
- PlainXmlDeserializer.cs
- StringConverter.cs
- SafeHGlobalHandleCritical.cs
- DataBindingCollectionEditor.cs
- XmlSchemaAttribute.cs
- x509store.cs
- FeatureManager.cs
- XmlStringTable.cs
- ManualResetEvent.cs
- Internal.cs
- TemplateNameScope.cs
- ConfigurationSection.cs
- DataViewSetting.cs
- JoinQueryOperator.cs
- SettingsContext.cs
- NameScope.cs
- HtmlLiteralTextAdapter.cs
- MetabaseServerConfig.cs
- Array.cs
- ValidatingReaderNodeData.cs
- MessageLogTraceRecord.cs
- RealProxy.cs
- ContainerAction.cs
- OleCmdHelper.cs
- ConstrainedDataObject.cs
- SystemColorTracker.cs
- BaseUriHelper.cs
- WebZone.cs
- RewritingPass.cs
- ICspAsymmetricAlgorithm.cs
- HtmlCommandAdapter.cs
- GuidConverter.cs
- ObjectDataSourceStatusEventArgs.cs
- DataObject.cs
- _SpnDictionary.cs
- NavigatorOutput.cs
- HelpProvider.cs
- CacheHelper.cs
- TypedReference.cs
- MatchingStyle.cs
- ListControlStringCollectionEditor.cs
- FrameworkElement.cs
- TaskFormBase.cs
- PermissionListSet.cs