• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# NativeFormat.Handle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Internal.Metadata.NativeFormat.Handle的典型用法代码示例。如果您正苦于以下问题:C# Handle类的具体用法?C# Handle怎么用?C# Handle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Handle类属于Internal.Metadata.NativeFormat命名空间,在下文中一共展示了Handle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Read

 public static uint Read(this NativeReader reader, uint offset, out Handle handle)
 {
     uint rawValue;
     offset = reader.DecodeUnsigned(offset, out rawValue);
     handle = new Handle((HandleType)(byte)rawValue, (int)(rawValue >> 8));
     return offset;
 }
开发者ID:justinvp,项目名称:corert,代码行数:7,代码来源:MdBinaryReader.cs


示例2: RuntimeFatMethodParameterInfo

 private RuntimeFatMethodParameterInfo(MethodBase member, MethodHandle methodHandle, int position, ParameterHandle parameterHandle, MetadataReader reader, Handle typeHandle, TypeContext typeContext)
     : base(member, position, reader, typeHandle, typeContext)
 {
     _methodHandle = methodHandle;
     _parameterHandle = parameterHandle;
     _parameter = parameterHandle.GetParameter(reader);
 }
开发者ID:tijoytom,项目名称:corert,代码行数:7,代码来源:RuntimeFatMethodParameterInfo.cs


示例3: NativeFormatSignatureParser

        // TODO
        // bool _hasModifiers;

        public NativeFormatSignatureParser(NativeFormatMetadataUnit metadataUnit, Handle signatureHandle, MetadataReader metadataReader)
        {
            _metadataUnit = metadataUnit;
            _signatureHandle = signatureHandle;
            _metadataReader = metadataReader;
            // _hasModifiers = false;
        }
开发者ID:nattress,项目名称:corert,代码行数:10,代码来源:NativeFormatSignatureParser.cs


示例4: RuntimeMethodParameterInfo

 protected RuntimeMethodParameterInfo(MethodBase member, int position, MetadataReader reader, Handle typeHandle, TypeContext typeContext)
     : base(member, position)
 {
     Reader = reader;
     _typeHandle = typeHandle;
     _typeContext = typeContext;
 }
开发者ID:krytarowski,项目名称:corert,代码行数:7,代码来源:RuntimeMethodParameterInfo.cs


示例5: GetAttributeTypeAndConstructor

 public static bool GetAttributeTypeAndConstructor(this MetadataReader metadataReader, CustomAttributeHandle attributeHandle,
     out Handle attributeType, out Handle attributeCtor)
 {
     CustomAttribute attribute = metadataReader.GetCustomAttribute(attributeHandle);
     attributeCtor = attribute.Constructor;
     attributeType = attribute.GetAttributeTypeHandle(metadataReader);
     return true;
 }
开发者ID:nattress,项目名称:corert,代码行数:8,代码来源:MetadataExtensions.cs


示例6: GetAttributeTypeNamespaceAndName

        public static bool GetAttributeTypeNamespaceAndName(this MetadataReader metadataReader, Handle attributeType,
            out string namespaceString, out ConstantStringValueHandle nameHandle)
        {
            namespaceString = null;
            nameHandle = default(ConstantStringValueHandle);

            if (attributeType.HandleType == HandleType.TypeReference)
            {
                TypeReference typeRefRow = metadataReader.GetTypeReference(attributeType.ToTypeReferenceHandle(metadataReader));
                HandleType handleType = typeRefRow.ParentNamespaceOrType.HandleType;

                // Nested type?
                if (handleType == HandleType.TypeReference || handleType == HandleType.TypeDefinition)
                    return false;

                nameHandle = typeRefRow.TypeName;
                namespaceString = metadataReader.GetNamespaceName(typeRefRow.ParentNamespaceOrType.ToNamespaceReferenceHandle(metadataReader));
                return true;
            }
            else if (attributeType.HandleType == HandleType.TypeDefinition)
            {
                var def = metadataReader.GetTypeDefinition(attributeType.ToTypeDefinitionHandle(metadataReader));

                // Nested type?
                if (IsNested(def.Flags))
                    return false;

                nameHandle = def.Name;
                namespaceString = metadataReader.GetNamespaceName(def.NamespaceDefinition);
                return true;
            }
            else
            {
                // unsupported metadata
                return false;
            }
        }
开发者ID:nattress,项目名称:corert,代码行数:37,代码来源:MetadataExtensions.cs


示例7: ToTypeSpecificationHandle

        } // ToTypeReferenceHandle

        internal TypeSpecificationHandle ToTypeSpecificationHandle(Handle handle)
        {
            return new TypeSpecificationHandle(handle._value);
        } // ToTypeSpecificationHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例8: ToTypeReferenceHandle

        } // ToTypeInstantiationSignatureHandle

        internal TypeReferenceHandle ToTypeReferenceHandle(Handle handle)
        {
            return new TypeReferenceHandle(handle._value);
        } // ToTypeReferenceHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例9: ToTypeInstantiationSignatureHandle

        } // ToTypeForwarderHandle

        internal TypeInstantiationSignatureHandle ToTypeInstantiationSignatureHandle(Handle handle)
        {
            return new TypeInstantiationSignatureHandle(handle._value);
        } // ToTypeInstantiationSignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例10: ToNamedArgumentHandle

        } // ToMethodTypeVariableSignatureHandle

        internal NamedArgumentHandle ToNamedArgumentHandle(Handle handle)
        {
            return new NamedArgumentHandle(handle._value);
        } // ToNamedArgumentHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例11: Read

        } // Read

        public static uint Read(this NativeReader reader, uint offset, out Handle[] values)
        {
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            if (count == 0)
            {
                values = s_emptyHandleArray;
            }
            else
            {
                values = new Handle[count];
                for (uint i = 0; i < count; ++i)
                {
                    Handle tmp;
                    offset = reader.Read(offset, out tmp);
                    values[i] = tmp;
                }
            }
            return offset;
        } // Read
开发者ID:huamichaelchen,项目名称:corert,代码行数:22,代码来源:MdBinaryReaderGen.cs


示例12: ToParameterHandle

        } // ToNamespaceReferenceHandle

        internal ParameterHandle ToParameterHandle(Handle handle)
        {
            return new ParameterHandle(handle._value);
        } // ToParameterHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例13: ToNamespaceDefinitionHandle

        } // ToNamedArgumentHandle

        internal NamespaceDefinitionHandle ToNamespaceDefinitionHandle(Handle handle)
        {
            return new NamespaceDefinitionHandle(handle._value);
        } // ToNamespaceDefinitionHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例14: ToSZArraySignatureHandle

        } // ToReturnTypeSignatureHandle

        internal SZArraySignatureHandle ToSZArraySignatureHandle(Handle handle)
        {
            return new SZArraySignatureHandle(handle._value);
        } // ToSZArraySignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例15: ToReturnTypeSignatureHandle

        } // ToQualifiedMethodHandle

        internal ReturnTypeSignatureHandle ToReturnTypeSignatureHandle(Handle handle)
        {
            return new ReturnTypeSignatureHandle(handle._value);
        } // ToReturnTypeSignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例16: ToQualifiedMethodHandle

        } // ToQualifiedFieldHandle

        internal QualifiedMethodHandle ToQualifiedMethodHandle(Handle handle)
        {
            return new QualifiedMethodHandle(handle._value);
        } // ToQualifiedMethodHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例17: ToPropertySignatureHandle

        } // ToPropertyHandle

        internal PropertySignatureHandle ToPropertySignatureHandle(Handle handle)
        {
            return new PropertySignatureHandle(handle._value);
        } // ToPropertySignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例18: ToPointerSignatureHandle

        } // ToParameterTypeSignatureHandle

        internal PointerSignatureHandle ToPointerSignatureHandle(Handle handle)
        {
            return new PointerSignatureHandle(handle._value);
        } // ToPointerSignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例19: ToParameterTypeSignatureHandle

        } // ToParameterHandle

        internal ParameterTypeSignatureHandle ToParameterTypeSignatureHandle(Handle handle)
        {
            return new ParameterTypeSignatureHandle(handle._value);
        } // ToParameterTypeSignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs


示例20: ToTypeVariableSignatureHandle

        } // ToTypeSpecificationHandle

        internal TypeVariableSignatureHandle ToTypeVariableSignatureHandle(Handle handle)
        {
            return new TypeVariableSignatureHandle(handle._value);
        } // ToTypeVariableSignatureHandle
开发者ID:shahid-pk,项目名称:corert,代码行数:6,代码来源:NativeFormatReaderGen.cs



注:本文中的Internal.Metadata.NativeFormat.Handle类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NativeFormat.MetadataReader类代码示例发布时间:2022-05-26
下一篇:
C# JitInterface.CORINFO_SIG_INFO类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap