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
- ClusterRegistryConfigurationProvider.cs
- DesigntimeLicenseContext.cs
- Trace.cs
- MetadataArtifactLoaderFile.cs
- PageParserFilter.cs
- ReferencedAssembly.cs
- RewritingSimplifier.cs
- XmlSerializableWriter.cs
- OutputCacheSection.cs
- DataConnectionHelper.cs
- AttributeEmitter.cs
- DragDrop.cs
- ObjectDataSourceMethodEventArgs.cs
- DataKeyArray.cs
- HitTestParameters.cs
- SapiInterop.cs
- InfoCardAsymmetricCrypto.cs
- ColumnWidthChangingEvent.cs
- BitmapSource.cs
- Transform.cs
- ProxyElement.cs
- ReadOnlyNameValueCollection.cs
- CompilationPass2TaskInternal.cs
- ObjectHandle.cs
- MaxSessionCountExceededException.cs
- SourceSwitch.cs
- GetPageNumberCompletedEventArgs.cs
- HtmlElementCollection.cs
- JsonSerializer.cs
- PageSettings.cs
- FileSystemEventArgs.cs
- AppSettingsExpressionBuilder.cs
- ProfileSettingsCollection.cs
- ParamArrayAttribute.cs
- WindowsListViewItemCheckBox.cs
- Frame.cs
- Debugger.cs
- EmissiveMaterial.cs
- WriteableBitmap.cs
- BaseConfigurationRecord.cs
- BaseCAMarshaler.cs
- CryptoProvider.cs
- CqlLexerHelpers.cs
- LineServices.cs
- IODescriptionAttribute.cs
- XmlDictionaryReaderQuotas.cs
- XamlReader.cs
- X509CertificateStore.cs
- HGlobalSafeHandle.cs
- ImageMap.cs
- XPathDocument.cs
- shaperfactoryquerycacheentry.cs
- IItemContainerGenerator.cs
- TreeNodeStyleCollection.cs
- RemoteWebConfigurationHostStream.cs
- HtmlTableCell.cs
- Model3D.cs
- WebBrowser.cs
- DigitalSignatureProvider.cs
- COM2TypeInfoProcessor.cs
- AssemblyAssociatedContentFileAttribute.cs
- IntranetCredentialPolicy.cs
- GridEntry.cs
- DocumentViewerAutomationPeer.cs
- ProxyAttribute.cs
- ThicknessAnimation.cs
- FlowPanelDesigner.cs
- Token.cs
- MouseWheelEventArgs.cs
- MultipartContentParser.cs
- ProtocolsSection.cs
- EndOfStreamException.cs
- WindowsStatic.cs
- RectAnimationClockResource.cs
- InheritablePropertyChangeInfo.cs
- TextTreeObjectNode.cs
- SiteMapNodeItemEventArgs.cs
- TypeUtils.cs
- MarkupCompilePass1.cs
- DataSourceXmlSerializer.cs
- RuntimeArgument.cs
- GroupItem.cs
- RuleValidation.cs
- DataFieldConverter.cs
- BuilderElements.cs
- HostnameComparisonMode.cs
- EnumMemberAttribute.cs
- MouseBinding.cs
- CompModSwitches.cs
- EncryptedType.cs
- SerializationIncompleteException.cs
- XmlAnyElementAttribute.cs
- XmlEventCache.cs
- ExtendedPropertyInfo.cs
- StreamWithDictionary.cs
- SchemaLookupTable.cs
- XmlTextReaderImpl.cs
- RectAnimation.cs
- AutoGeneratedFieldProperties.cs
- OSFeature.cs