mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
81 lines
2.1 KiB
C#
81 lines
2.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="DataBindingHandlerAttribute.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.UI {
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Globalization;
|
|
using System.Security.Permissions;
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class DataBindingHandlerAttribute : Attribute {
|
|
private string _typeName;
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute();
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
public DataBindingHandlerAttribute() {
|
|
_typeName = String.Empty;
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
public DataBindingHandlerAttribute(Type type) {
|
|
_typeName = type.AssemblyQualifiedName;
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
public DataBindingHandlerAttribute(string typeName) {
|
|
_typeName = typeName;
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// </devdoc>
|
|
public string HandlerTypeName {
|
|
get {
|
|
return (_typeName != null ? _typeName : String.Empty);
|
|
}
|
|
}
|
|
|
|
|
|
/// <internalonly/>
|
|
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;
|
|
}
|
|
|
|
|
|
/// <internalonly/>
|
|
public override int GetHashCode() {
|
|
return HandlerTypeName.GetHashCode();
|
|
}
|
|
}
|
|
}
|
|
|