AsmResolver.Net.Signatures.TypeSignature.FromReader C# (CSharp) Method

FromReader() public static method

public static FromReader ( MetadataHeader header, IBinaryStreamReader reader ) : TypeSignature
header MetadataHeader
reader IBinaryStreamReader
return TypeSignature
        public static TypeSignature FromReader(MetadataHeader header, IBinaryStreamReader reader)
        {
            long position = reader.Position;
            var signature = ReadTypeSignature(header, reader);
            signature.StartOffset = position;
            return signature;
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Reads a single pinned type signature at the current position of the provided stream reader.
 /// </summary>
 /// <param name="image">The image the signature resides in.</param>
 /// <param name="reader">The reader to use.</param>
 /// <param name="protection">The recursion protection that is used to detect malicious loops in the metadata.</param>
 /// <returns>The read signature.</returns>
 public static PinnedTypeSignature FromReader(
     MetadataImage image,
     IBinaryStreamReader reader,
     RecursionProtection protection)
 {
     return(new PinnedTypeSignature(TypeSignature.FromReader(image, reader, false, protection)));
 }
All Usage Examples Of AsmResolver.Net.Signatures.TypeSignature::FromReader