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
- DirectoryNotFoundException.cs
- CellTreeSimplifier.cs
- MemoryRecordBuffer.cs
- IconHelper.cs
- EnumBuilder.cs
- TextElementCollectionHelper.cs
- DelayDesigner.cs
- ConnectionPoolRegistry.cs
- SqlHelper.cs
- BinaryNode.cs
- WizardForm.cs
- DataObjectSettingDataEventArgs.cs
- TemplateControl.cs
- SessionStateSection.cs
- TemplateBindingExtension.cs
- Config.cs
- WsatConfiguration.cs
- BehaviorEditorPart.cs
- GridViewRowPresenter.cs
- JapaneseLunisolarCalendar.cs
- RequestCachePolicy.cs
- Internal.cs
- InputBinder.cs
- LinearGradientBrush.cs
- FixedSOMLineCollection.cs
- DbProviderServices.cs
- CompilationSection.cs
- XmlNodeReader.cs
- SizeAnimation.cs
- LocalizeDesigner.cs
- AssemblyInfo.cs
- RoutedCommand.cs
- XmlNamespaceMappingCollection.cs
- Interfaces.cs
- IBuiltInEvidence.cs
- ControlValuePropertyAttribute.cs
- ExpressionEditorAttribute.cs
- CollectionDataContractAttribute.cs
- DataControlReferenceCollection.cs
- ReflectionServiceProvider.cs
- SaveFileDialogDesigner.cs
- MemberDomainMap.cs
- CollectionCodeDomSerializer.cs
- ComponentEditorPage.cs
- FilteredDataSetHelper.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DynamicAttribute.cs
- Int32KeyFrameCollection.cs
- _UriSyntax.cs
- TreeNode.cs
- StrongNameHelpers.cs
- MetabaseSettings.cs
- ExpanderAutomationPeer.cs
- ProcessStartInfo.cs
- QueryOptionExpression.cs
- UriParserTemplates.cs
- SerializationFieldInfo.cs
- KeysConverter.cs
- LoopExpression.cs
- Executor.cs
- Marshal.cs
- XPathAncestorIterator.cs
- VectorCollectionValueSerializer.cs
- WorkflowServiceHostFactory.cs
- FileDialog_Vista_Interop.cs
- AnonymousIdentificationModule.cs
- ExecutionContext.cs
- TypeGeneratedEventArgs.cs
- ConfigurationElement.cs
- sitestring.cs
- UDPClient.cs
- FloaterParagraph.cs
- ForwardPositionQuery.cs
- ListItemParagraph.cs
- smtpconnection.cs
- TrustLevel.cs
- CancellationTokenSource.cs
- DoubleMinMaxAggregationOperator.cs
- Point3DValueSerializer.cs
- AppendHelper.cs
- SecondaryIndexDefinition.cs
- XmlDataSource.cs
- behaviorssection.cs
- KeyMatchBuilder.cs
- TypeDescriptor.cs
- MemberInfoSerializationHolder.cs
- DataGridViewBindingCompleteEventArgs.cs
- HttpStreamXmlDictionaryWriter.cs
- _NegoStream.cs
- ApplicationTrust.cs
- SchemaDeclBase.cs
- MaskedTextBoxTextEditor.cs
- TemplateModeChangedEventArgs.cs
- SymbolType.cs
- EFTableProvider.cs
- Exception.cs
- InkPresenter.cs
- XamlPointCollectionSerializer.cs
- SQlBooleanStorage.cs
- AuditLog.cs