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
- WebBrowserPermission.cs
- UnsafeNativeMethodsTablet.cs
- SqlUtil.cs
- ProcessInfo.cs
- CallContext.cs
- WebBrowserEvent.cs
- PerfCounterSection.cs
- EntryWrittenEventArgs.cs
- ViewCellSlot.cs
- InputLanguageProfileNotifySink.cs
- NegotiationTokenAuthenticatorStateCache.cs
- WebScriptEndpoint.cs
- TextRunTypographyProperties.cs
- StringValidator.cs
- SwitchElementsCollection.cs
- ShaderRenderModeValidation.cs
- StringSource.cs
- DashStyle.cs
- Pen.cs
- BinHexEncoding.cs
- TextDecorationCollection.cs
- ExtenderHelpers.cs
- EncoderBestFitFallback.cs
- DataTableNewRowEvent.cs
- AnonymousIdentificationModule.cs
- SubMenuStyle.cs
- _RequestLifetimeSetter.cs
- RoleGroup.cs
- Pair.cs
- DbConnectionInternal.cs
- smtppermission.cs
- InternalResources.cs
- XmlText.cs
- ResourceBinder.cs
- StringSource.cs
- Content.cs
- TextEditorParagraphs.cs
- XmlEventCache.cs
- Expression.cs
- FtpCachePolicyElement.cs
- SqlInternalConnectionTds.cs
- PreProcessInputEventArgs.cs
- PointCollection.cs
- PeerFlooder.cs
- SingleTagSectionHandler.cs
- webclient.cs
- ImageSource.cs
- SQLByte.cs
- UserUseLicenseDictionaryLoader.cs
- LocatorBase.cs
- RestHandler.cs
- StringFunctions.cs
- WebColorConverter.cs
- FormsAuthenticationEventArgs.cs
- CompilerError.cs
- WebExceptionStatus.cs
- InvalidEnumArgumentException.cs
- PrintingPermissionAttribute.cs
- FactoryGenerator.cs
- StringBuilder.cs
- PopupRootAutomationPeer.cs
- ObjectIDGenerator.cs
- WebServiceFaultDesigner.cs
- DataGridLength.cs
- Clause.cs
- KeyEvent.cs
- String.cs
- DynamicMethod.cs
- PointAnimationUsingKeyFrames.cs
- Brush.cs
- WebBrowserSiteBase.cs
- GridSplitter.cs
- ResourcesBuildProvider.cs
- HitTestParameters.cs
- AggregateNode.cs
- Addressing.cs
- BufferedGraphics.cs
- WindowManager.cs
- OdbcUtils.cs
- PeerResolver.cs
- MailMessage.cs
- FileUpload.cs
- FixedPageStructure.cs
- PassportPrincipal.cs
- PublisherMembershipCondition.cs
- BamlTreeMap.cs
- RelationshipFixer.cs
- XhtmlBasicControlAdapter.cs
- FontConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- UidManager.cs
- AuthenticationModulesSection.cs
- DeviceContext2.cs
- CompressStream.cs
- Speller.cs
- SplashScreenNativeMethods.cs
- DataGridParentRows.cs
- DeviceSpecificDialogCachedState.cs
- newinstructionaction.cs
- DataGrid.cs