System.Reflection.CustomAttributerTypedArgument.cs

ylbtech-System.Reflection.CustomAttributerTypedArgument.cs
1.返回顶部
1、
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6.1mscorlib.dll
#endregion

using System.Runtime.InteropServices;

namespace System.Reflection
{
    //
    // 摘要:
    //     表示仅反射上下文中自定义属性的自变量或数组自变量的元素。
    [ComVisible(true)]
    public struct CustomAttributeTypedArgument
    {
        //
        // 摘要:
        //     新实例初始化 System.Reflection.CustomAttributeTypedArgument 类具有指定值。
        //
        // 参数:
        //   value:
        //     自定义特性参数的值。
        //
        // 异常:
        //   T:System.ArgumentNullException:
        //     value 为 null。
        public CustomAttributeTypedArgument(object value);
        //
        // 摘要:
        //     新实例初始化 System.Reflection.CustomAttributeTypedArgument 类,具有指定的类型和值。
        //
        // 参数:
        //   argumentType:
        //     自定义特性参数的类型。
        //
        //   value:
        //     自定义特性参数的值。
        //
        // 异常:
        //   T:System.ArgumentNullException:
        //     argumentType 为 null。
        public CustomAttributeTypedArgument(Type argumentType, object value);

        //
        // 摘要:
        //     获取参数或数组参数元素的类型。
        //
        // 返回结果:
        //     一个 System.Type 对象,表示参数或数组元素的类型。
        public Type ArgumentType { get; }
        //
        // 摘要:
        //     获取参数的值针对简单参数或数组参数; 的元素获取数组参数的值的集合。
        //
        // 返回结果:
        //     一个对象,表示的值的参数或元素或一个泛型 System.Collections.ObjectModel.ReadOnlyCollection`1 的 System.Reflection.CustomAttributeTypedArgument
        //     表示数组类型参数的值的对象。
        public object Value { get; }

        //
        // 摘要:
        //     指示此实例与指定对象是否相等。
        //
        // 参数:
        //   obj:
        //     要比较的另一个对象。
        //
        // 返回结果:
        //     如果 true 和该实例具有相同的类型并表示相同的值,则为 obj;否则为 false。
        public override bool Equals(object obj);
        //
        // 摘要:
        //     返回此实例的哈希代码。
        //
        // 返回结果:
        //     一个 32 位带符号整数,它是此实例的哈希代码。
        public override int GetHashCode();
        //
        // 摘要:
        //     返回由参数名称、等号和字符串表示的参数值组成的字符串。
        //
        // 返回结果:
        //     由参数名称、等号和字符串表示的参数值组成的字符串。
        public override string ToString();

        //
        // 摘要:
        //     测试两个 System.Reflection.CustomAttributeTypedArgument 结构是否相等。
        //
        // 参数:
        //   left:
        //     相等运算符左侧的 System.Reflection.CustomAttributeTypedArgument 结构。
        //
        //   right:
        //     相等运算符右侧的 System.Reflection.CustomAttributeTypedArgument 结构。
        //
        // 返回结果:
        //     如果两个 System.Reflection.CustomAttributeTypedArgument 结构相等,则为 true;否则为 false。
        public static bool operator ==(CustomAttributeTypedArgument left, CustomAttributeTypedArgument right);
        //
        // 摘要:
        //     测试两个 System.Reflection.CustomAttributeTypedArgument 结构是否不同。
        //
        // 参数:
        //   left:
        //     不等运算符左侧的 System.Reflection.CustomAttributeTypedArgument 结构。
        //
        //   right:
        //     不等运算符右侧的 System.Reflection.CustomAttributeTypedArgument 结构。
        //
        // 返回结果:
        //     如果两个 System.Reflection.CustomAttributeTypedArgument 结构不同,则为 true;否则为 false。
        public static bool operator !=(CustomAttributeTypedArgument left, CustomAttributeTypedArgument right);
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/storebook/p/12676644.html