コード例 #1
0
 internal static CilTypeReference Create(TypeReference typeReference, ref CilReaders readers, int token)
 {
     CilTypeReference type = new CilTypeReference();
     type._typeReference = typeReference;
     type._readers = readers;
     type._token = token;
     return type;
 }
コード例 #2
0
        internal static CilTypeReference Create(TypeReference typeReference, ref CilReaders readers, int token)
        {
            CilTypeReference type = new CilTypeReference();

            type._typeReference = typeReference;
            type._readers       = readers;
            type._token         = token;
            return(type);
        }
コード例 #3
0
ファイル: CilAssembly.cs プロジェクト: zsybupt/corefxlab
        private IEnumerable <CilTypeReference> GetTypeReferences()
        {
            var handles = _readers.MdReader.TypeReferences;

            foreach (var handle in handles)
            {
                var typeReference = _readers.MdReader.GetTypeReference(handle);
                yield return(CilTypeReference.Create(typeReference, ref _readers, MetadataTokens.GetToken(handle)));
            }
        }