Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1305376 / 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)]
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)]
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
- Camera.cs
- VariableExpressionConverter.cs
- DataViewManager.cs
- AppDomainCompilerProxy.cs
- XmlSchemaComplexContent.cs
- BlurBitmapEffect.cs
- _Rfc2616CacheValidators.cs
- CaseInsensitiveHashCodeProvider.cs
- BaseResourcesBuildProvider.cs
- TextEndOfLine.cs
- EditingCommands.cs
- ProcessStartInfo.cs
- ActivityMarkupSerializationProvider.cs
- XmlReturnWriter.cs
- XmlMembersMapping.cs
- OperationCanceledException.cs
- AppDomainManager.cs
- RunInstallerAttribute.cs
- CombinedGeometry.cs
- ComponentResourceKey.cs
- StreamAsIStream.cs
- Semaphore.cs
- TdsRecordBufferSetter.cs
- SrgsSemanticInterpretationTag.cs
- Cursor.cs
- MemoryMappedViewAccessor.cs
- IpcChannelHelper.cs
- PersonalizationProviderCollection.cs
- MexServiceChannelBuilder.cs
- CachedPathData.cs
- ResourceDescriptionAttribute.cs
- SetterBaseCollection.cs
- lengthconverter.cs
- EdmComplexPropertyAttribute.cs
- ScriptMethodAttribute.cs
- AutoGeneratedFieldProperties.cs
- ReferentialConstraint.cs
- CodeSpit.cs
- ToolStripLocationCancelEventArgs.cs
- XPathMessageFilter.cs
- TextBlock.cs
- ApplicationSettingsBase.cs
- ComplexBindingPropertiesAttribute.cs
- ContextQuery.cs
- IgnoreSection.cs
- RoutedCommand.cs
- CharacterMetricsDictionary.cs
- SoapObjectInfo.cs
- CellParaClient.cs
- FixedPage.cs
- FormatException.cs
- FontDifferentiator.cs
- DesignerVerbCollection.cs
- EntitySetBase.cs
- SchemaMerger.cs
- Thread.cs
- LinkedList.cs
- WindowsListViewSubItem.cs
- Point3DAnimationBase.cs
- TrackingProfileDeserializationException.cs
- MobileTemplatedControlDesigner.cs
- NetworkInformationPermission.cs
- Win32Interop.cs
- SrgsElementList.cs
- UnmanagedMemoryStream.cs
- DBAsyncResult.cs
- ValueConversionAttribute.cs
- MultiTouchSystemGestureLogic.cs
- indexingfiltermarshaler.cs
- OutputCacheModule.cs
- EventProviderBase.cs
- AddInServer.cs
- DbQueryCommandTree.cs
- PropertyConverter.cs
- SoapRpcServiceAttribute.cs
- ChooseAction.cs
- ExpandableObjectConverter.cs
- ConditionValidator.cs
- MenuItem.cs
- ObjectToken.cs
- Geometry.cs
- PageContentCollection.cs
- TrustLevelCollection.cs
- WCFModelStrings.Designer.cs
- ClientConvert.cs
- ProfileProvider.cs
- ValidationEventArgs.cs
- XpsDocument.cs
- ErrorFormatter.cs
- ForwardPositionQuery.cs
- DbCommandTree.cs
- HtmlShim.cs
- RootCodeDomSerializer.cs
- WebPartUtil.cs
- ListMarkerSourceInfo.cs
- NewExpression.cs
- Pair.cs
- SqlStream.cs
- HttpRequestMessageProperty.cs
- Guid.cs