/// <summary>
 ///     Reads a <see cref="MarshalType" /> from <see cref="reader" />
 /// </summary>
 /// <param name="module">Owner module</param>
 /// <param name="reader">A reader that will be owned by us</param>
 /// <param name="gpContext">Generic parameter context</param>
 /// <returns>A new <see cref="MarshalType" /> instance</returns>
 public static MarshalType Read(ModuleDef module, IBinaryReader reader, GenericParamContext gpContext)
 {
     using (var marshalReader = new MarshalBlobReader(module, reader, gpContext))
     {
         return(marshalReader.Read());
     }
 }
Example #2
0
        /// <summary>
        /// Reads a <see cref="MarshalType"/> from <see cref="reader"/>
        /// </summary>
        /// <param name="module">Owner module</param>
        /// <param name="reader">A reader that will be owned by us</param>
        /// <param name="gpContext">Generic parameter context</param>
        /// <returns>A new <see cref="MarshalType"/> instance</returns>
        public static MarshalType Read(ModuleDef module, DataReader reader, GenericParamContext gpContext)
        {
            var marshalReader = new MarshalBlobReader(module, ref reader, gpContext);

            return(marshalReader.Read());
        }
Example #3
0
		/// <summary>
		/// Reads a <see cref="MarshalType"/> from <see cref="reader"/>
		/// </summary>
		/// <param name="module">Owner module</param>
		/// <param name="reader">A reader that will be owned by us</param>
		/// <param name="gpContext">Generic parameter context</param>
		/// <returns>A new <see cref="MarshalType"/> instance</returns>
		public static MarshalType Read(ModuleDef module, IBinaryReader reader, GenericParamContext gpContext) {
			using (var marshalReader = new MarshalBlobReader(module, reader, gpContext))
				return marshalReader.Read();
		}
Example #4
0
 /// <summary>
 /// Reads a <see cref="MarshalType"/> from <see cref="reader"/>
 /// </summary>
 /// <param name="module">Owner module</param>
 /// <param name="reader">A reader that will be owned by us</param>
 /// <returns>A new <see cref="MarshalType"/> instance</returns>
 public static MarshalType Read(ModuleDef module, IBinaryReader reader)
 {
     using (var marshalReader = new MarshalBlobReader(module, reader))
         return marshalReader.Read();
 }