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
- PerformanceCounterPermission.cs
- InputBindingCollection.cs
- HyperLinkColumn.cs
- ListDictionaryInternal.cs
- Mouse.cs
- WinCategoryAttribute.cs
- ListCollectionView.cs
- TempFiles.cs
- ErrorHandler.cs
- URLAttribute.cs
- QueryOptionExpression.cs
- LineServicesRun.cs
- PrintController.cs
- ProcessInfo.cs
- Cursor.cs
- ServiceDescriptionReflector.cs
- InputQueue.cs
- FixedSOMLineCollection.cs
- VectorConverter.cs
- ContentHostHelper.cs
- EntitySetBaseCollection.cs
- Literal.cs
- KeyGesture.cs
- JapaneseLunisolarCalendar.cs
- HostSecurityManager.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- HttpResponse.cs
- ContentElement.cs
- TextPointerBase.cs
- ModelItemCollectionImpl.cs
- ImageButton.cs
- ManagedFilter.cs
- CachingHintValidation.cs
- Int32Collection.cs
- PDBReader.cs
- Transform3DGroup.cs
- FtpRequestCacheValidator.cs
- FieldBuilder.cs
- SessionStateUtil.cs
- EncoderExceptionFallback.cs
- AnnotationResourceCollection.cs
- Win32Exception.cs
- ServiceConfigurationTraceRecord.cs
- RegistryKey.cs
- RegexBoyerMoore.cs
- ReadOnlyTernaryTree.cs
- SinglePageViewer.cs
- SimpleBitVector32.cs
- StaticSiteMapProvider.cs
- PrintPreviewDialog.cs
- RestHandler.cs
- controlskin.cs
- WindowInteractionStateTracker.cs
- CustomCategoryAttribute.cs
- OleDbSchemaGuid.cs
- glyphs.cs
- SHA256.cs
- NativeMethods.cs
- RangeBaseAutomationPeer.cs
- ContentFileHelper.cs
- RayMeshGeometry3DHitTestResult.cs
- RuntimeHandles.cs
- TypeSystem.cs
- OdbcRowUpdatingEvent.cs
- XmlTextAttribute.cs
- RequestValidator.cs
- ControlCodeDomSerializer.cs
- FormatVersion.cs
- FixUpCollection.cs
- BoolExpr.cs
- PasswordRecovery.cs
- WeakReadOnlyCollection.cs
- SafeMarshalContext.cs
- PreviewPageInfo.cs
- SqlHelper.cs
- ControllableStoryboardAction.cs
- PrintDialog.cs
- Queue.cs
- KnownBoxes.cs
- PatternMatcher.cs
- EntityDataSourceDataSelection.cs
- LambdaCompiler.Statements.cs
- PreviewControlDesigner.cs
- UpdatePanelTriggerCollection.cs
- DeclarationUpdate.cs
- TreeNodeBindingCollection.cs
- CustomSignedXml.cs
- MultiByteCodec.cs
- DesignerLoader.cs
- Polyline.cs
- HtmlElement.cs
- AuthenticationSection.cs
- SignedInfo.cs
- Pair.cs
- OleDbRowUpdatedEvent.cs
- PartialTrustVisibleAssembly.cs
- XmlSchemaAttribute.cs
- AttributeUsageAttribute.cs
- Assert.cs
- HyperLink.cs