Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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();
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaAttDef.cs
- PeerTransportElement.cs
- ArgumentOutOfRangeException.cs
- Point3DAnimationBase.cs
- SuppressIldasmAttribute.cs
- SerializationInfoEnumerator.cs
- RayHitTestParameters.cs
- StrokeCollectionDefaultValueFactory.cs
- FixedTextPointer.cs
- DbUpdateCommandTree.cs
- RemotingServices.cs
- ValidationContext.cs
- PaintEvent.cs
- RegexBoyerMoore.cs
- ParserContext.cs
- InputBinder.cs
- HtmlInputHidden.cs
- AndCondition.cs
- EntityDataSourceContextCreatedEventArgs.cs
- OrderingExpression.cs
- BindStream.cs
- MethodToken.cs
- FillErrorEventArgs.cs
- StylusPointProperty.cs
- BinaryOperationBinder.cs
- EncodingStreamWrapper.cs
- RemoteCryptoDecryptRequest.cs
- CodeAttributeDeclaration.cs
- RectIndependentAnimationStorage.cs
- DataRowView.cs
- ToolboxBitmapAttribute.cs
- TableLayoutRowStyleCollection.cs
- EventArgs.cs
- OutputCacheSettings.cs
- MetadataCacheItem.cs
- BounceEase.cs
- HttpListenerException.cs
- PackageDigitalSignatureManager.cs
- WebPartExportVerb.cs
- SizeFConverter.cs
- Message.cs
- ProvidersHelper.cs
- ToolStripPanel.cs
- oledbmetadatacollectionnames.cs
- FormatterServicesNoSerializableCheck.cs
- columnmapfactory.cs
- GridLengthConverter.cs
- Blend.cs
- ViewCellSlot.cs
- KeyedCollection.cs
- ComPlusContractBehavior.cs
- errorpatternmatcher.cs
- XsdDuration.cs
- CaseInsensitiveComparer.cs
- ListItemsPage.cs
- FixedHyperLink.cs
- ApplicationSecurityManager.cs
- TextParaLineResult.cs
- LinqDataSourceSelectEventArgs.cs
- TableLayoutPanel.cs
- AppDomain.cs
- HostDesigntimeLicenseContext.cs
- CodeCommentStatementCollection.cs
- FontNameConverter.cs
- MissingFieldException.cs
- CompiledIdentityConstraint.cs
- Label.cs
- XPathAncestorIterator.cs
- FixedSOMSemanticBox.cs
- StorageComplexTypeMapping.cs
- VersionedStreamOwner.cs
- HandledEventArgs.cs
- SafeHandles.cs
- HtmlInputCheckBox.cs
- Base64Encoder.cs
- XmlSchemaChoice.cs
- ThreadSafeList.cs
- WebPartVerbCollection.cs
- PermissionRequestEvidence.cs
- RegularExpressionValidator.cs
- MutexSecurity.cs
- SHA1Managed.cs
- XPathException.cs
- Matrix3D.cs
- HatchBrush.cs
- FixedSOMFixedBlock.cs
- SpeechSeg.cs
- XmlHierarchicalEnumerable.cs
- TraceSection.cs
- VScrollProperties.cs
- ObjectListCommandsPage.cs
- RegistrationServices.cs
- HtmlMeta.cs
- ServiceEndpoint.cs
- WasAdminWrapper.cs
- UidPropertyAttribute.cs
- BoundPropertyEntry.cs
- RowToParametersTransformer.cs
- PKCS1MaskGenerationMethod.cs
- GAC.cs