Ejemplo n.º 1
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature reader which will be owned by us</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, IBinaryReader signature, GenericParamContext gpContext)
 {
     byte[] extraData;
     return(ReadTypeSig(helper, corLibTypes, signature, gpContext, out extraData));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature data</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature, GenericParamContext gpContext)
 {
     return(ReadTypeSig(helper, corLibTypes, MemoryImageStream.Create(signature), gpContext));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature reader which will be owned by us</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, IBinaryReader signature)
 {
     return(ReadTypeSig(helper, corLibTypes, signature, new GenericParamContext()));
 }
Ejemplo n.º 4
0
		public TypeSpecDndbg(IMetaDataImport mdi, uint rid, ISignatureReaderHelper helper)
			: base() {
			MetaDataImport = mdi;
			this.rid = rid;
			this.helper = helper;
		}
Ejemplo n.º 5
0
 /// <summary>
 /// Reads a <see cref="CallingConventionSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature data</param>
 /// <returns>A new <see cref="CallingConventionSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static CallingConventionSig ReadSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature)
 {
     return(ReadSig(helper, corLibTypes, MemoryImageStream.Create(signature), new GenericParamContext()));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature data</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <param name="extraData">If there's any extra data after the signature, it's saved
 /// here, else this will be <c>null</c></param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature, GenericParamContext gpContext, out byte[] extraData) =>
 ReadTypeSig(helper, corLibTypes, ByteArrayDataReaderFactory.CreateReader(signature), gpContext, out extraData);
Ejemplo n.º 7
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">ICorLibTypes instance</param>
 /// <param name="signature">The signature data</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature)
 {
     return(ReadTypeSig(helper, corLibTypes, MemoryImageStream.Create(signature)));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature reader</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, DataReader signature, GenericParamContext gpContext) =>
 ReadTypeSig(helper, corLibTypes, signature, gpContext, out var extraData);
Ejemplo n.º 9
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature reader</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, DataReader signature) =>
 ReadTypeSig(helper, corLibTypes, signature, new GenericParamContext());
Ejemplo n.º 10
0
 /// <summary>
 /// Reads a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature data</param>
 /// <returns>A new <see cref="TypeSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static TypeSig ReadTypeSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature) =>
 ReadTypeSig(helper, corLibTypes, ByteArrayDataReaderFactory.CreateReader(signature), new GenericParamContext());
Ejemplo n.º 11
0
 /// <summary>
 /// Reads a <see cref="CallingConventionSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature reader</param>
 /// <returns>A new <see cref="CallingConventionSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static CallingConventionSig ReadSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, DataReader signature) =>
 ReadSig(helper, corLibTypes, signature, new GenericParamContext());
Ejemplo n.º 12
0
 /// <summary>
 /// Reads a <see cref="CallingConventionSig"/> signature
 /// </summary>
 /// <param name="helper">Token resolver</param>
 /// <param name="corLibTypes">A <see cref="ICorLibTypes"/> instance</param>
 /// <param name="signature">The signature data</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <returns>A new <see cref="CallingConventionSig"/> instance or <c>null</c> if
 /// <paramref name="signature"/> is invalid.</returns>
 public static CallingConventionSig ReadSig(ISignatureReaderHelper helper, ICorLibTypes corLibTypes, byte[] signature, GenericParamContext gpContext) =>
 ReadSig(helper, corLibTypes, ByteArrayDataReaderFactory.CreateReader(signature), gpContext);