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
- SelectionEditingBehavior.cs
- Axis.cs
- RoleManagerModule.cs
- PrintDocument.cs
- ModelTreeManager.cs
- PageSetupDialog.cs
- DataTemplateKey.cs
- CrossAppDomainChannel.cs
- Deflater.cs
- DependencySource.cs
- FirewallWrapper.cs
- PageClientProxyGenerator.cs
- ComContractElement.cs
- Lock.cs
- BinaryFormatterSinks.cs
- KerberosTicketHashIdentifierClause.cs
- ClientApiGenerator.cs
- NotificationContext.cs
- ObjectQuery.cs
- SizeConverter.cs
- SqlError.cs
- Rect3DValueSerializer.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- InheritablePropertyChangeInfo.cs
- TransformProviderWrapper.cs
- IdentifierCreationService.cs
- CustomAttributeBuilder.cs
- UnionCodeGroup.cs
- RelationshipManager.cs
- TypeDescriptionProvider.cs
- RegexCompilationInfo.cs
- SerialPort.cs
- ListViewDeletedEventArgs.cs
- Html32TextWriter.cs
- cache.cs
- Subordinate.cs
- RewritingValidator.cs
- FreezableDefaultValueFactory.cs
- GridViewEditEventArgs.cs
- StateBag.cs
- HttpPostLocalhostServerProtocol.cs
- DataTemplate.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- XNameConverter.cs
- HMAC.cs
- OptimizedTemplateContent.cs
- XmlWrappingReader.cs
- Propagator.JoinPropagator.cs
- DataServiceRequest.cs
- ToolStripSettings.cs
- ToolStripGrip.cs
- IfJoinedCondition.cs
- FileFormatException.cs
- PathSegmentCollection.cs
- login.cs
- DataGridCellItemAutomationPeer.cs
- ModulesEntry.cs
- TimeSpanStorage.cs
- ComplusEndpointConfigContainer.cs
- CompilerCollection.cs
- CustomAttribute.cs
- JobDuplex.cs
- webproxy.cs
- FileStream.cs
- SecurityPolicySection.cs
- AppSettingsExpressionBuilder.cs
- ControlCachePolicy.cs
- HtmlLink.cs
- PageBorderless.cs
- IIS7ConfigurationLoader.cs
- CodeMemberField.cs
- EntityDataSourceViewSchema.cs
- ErrorTableItemStyle.cs
- WebHostedComPlusServiceHost.cs
- DataServiceCollectionOfT.cs
- SQLBytes.cs
- AttributeSetAction.cs
- HttpRuntime.cs
- XmlSerializerNamespaces.cs
- ToolStripCodeDomSerializer.cs
- SqlUtils.cs
- AttributeUsageAttribute.cs
- XPathScanner.cs
- PriorityQueue.cs
- XmlLoader.cs
- PersonalizableTypeEntry.cs
- LogicalTreeHelper.cs
- DefaultParameterValueAttribute.cs
- ProvidePropertyAttribute.cs
- TableCell.cs
- MultiplexingDispatchMessageFormatter.cs
- KeyMatchBuilder.cs
- Registry.cs
- TypeElement.cs
- BrushMappingModeValidation.cs
- SafeNativeMethods.cs
- CodeTypeDeclarationCollection.cs
- Item.cs
- RegexRunner.cs
- BinaryObjectWriter.cs