System.TypedRerference.cs

ylbtech-System.TypedRerference.cs
1.返回顶部
1、
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\mscorlib.dll
#endregion

using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;

namespace System
{
    //
    // 摘要:
    //     描述既包含指向某位置的托管指针,也包含该位置可能存储的类型的运行时表示形式的对象。
    [CLSCompliant(false)]
    [ComVisible(true)]
    [NonVersionableAttribute]
    public struct TypedReference
    {
        //
        // 摘要:
        //     返回指定 TypedReference 的目标类型。
        //
        // 参数:
        //   value:
        //     要返回其目标类型的值。
        //
        // 返回结果:
        //     返回指定 TypedReference 的目标类型。
        public static Type GetTargetType(TypedReference value);
        //
        // 摘要:
        //     为由指定对象和字段说明列表标识的字段生成 TypedReference。
        //
        // 参数:
        //   target:
        //     包含由 flds 的第一个元素说明的字段的对象。
        //
        //   flds:
        //     字段说明列表,其中每个元素说明的字段均包含了由后续元素说明的字段。 每个说明的字段都必须是值类型。 字段说明必须是类型系统所提供的 RuntimeFieldInfo
        //     对象。
        //
        // 返回结果:
        //     由 flds 的最后一个元素说明的字段的 System.TypedReference。
        //
        // 异常:
        //   T:System.ArgumentNullException:
        //     target 或 flds 为 null。 - 或 - flds 的元素为 null。
        //
        //   T:System.ArgumentException:
        //     flds 数组不包含任何元素。 - 或 - flds 的元素不是一个 RuntimeFieldInfo 对象。 - 或 - flds 的元素的属性 System.Reflection.FieldInfo.IsInitOnly
        //     或 System.Reflection.FieldInfo.IsStatic 的值为 true。
        //
        //   T:System.MissingMemberException:
        //     参数 target 不包含 flds 的第一个元素描述的字段,或者 flds 的元素描述的字段不包含在 flds 的后续元素描述的字段中。 - 或 - flds
        //     的元素描述的字段不是值类型。
        [CLSCompliant(false)]
        [SecurityCritical]
        public static TypedReference MakeTypedReference(object target, FieldInfo[] flds);
        //
        // 摘要:
        //     将指定值转换为 TypedReference。 不支持此方法。
        //
        // 参数:
        //   target:
        //     转换的目标。
        //
        //   value:
        //     要转换的值。
        //
        // 异常:
        //   T:System.NotSupportedException:
        //     在所有情况下。
        [CLSCompliant(false)]
        [SecuritySafeCritical]
        public static void SetTypedReference(TypedReference target, object value);
        //
        // 摘要:
        //     返回指定 TypedReference 的内部元数据类型句柄。
        //
        // 参数:
        //   value:
        //     请求该类型句柄的 TypedReference。
        //
        // 返回结果:
        //     指定 TypedReference 的内部元数据类型句柄。
        public static RuntimeTypeHandle TargetTypeToken(TypedReference value);
        //
        // 摘要:
        //     将指定 TypedReference 转换为 Object。
        //
        // 参数:
        //   value:
        //     要转换的 TypedReference。
        //
        // 返回结果:
        //     System.Object,转换自 TypedReference。
        [SecuritySafeCritical]
        public static object ToObject(TypedReference value);
        //
        // 摘要:
        //     检查该对象是否等于指定对象。
        //
        // 参数:
        //   o:
        //     用于和当前对象进行比较的对象。
        //
        // 返回结果:
        //     如果该对象等于指定对象,则为 true;否则为 false。
        //
        // 异常:
        //   T:System.NotSupportedException:
        //     未实现此方法。
        public override bool Equals(object o);
        //
        // 摘要:
        //     返回此对象的哈希代码。
        //
        // 返回结果:
        //     此对象的哈希代码。
        public override int GetHashCode();
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

猜你喜欢

转载自www.cnblogs.com/storebook/p/12677062.html