Esempio n. 1
0
 /// <summary>
 /// 使用指定的类型转换器、IL 指令生成器和类型初始化 <see cref="Converter"/> 类的新实例。
 /// </summary>
 /// <param name="conversion">类型转换器。</param>
 /// <param name="il">IL 的指令生成器。</param>
 /// <param name="inputType">要转换的对象的类型。</param>
 /// <param name="outputType">要将输入对象转换到的类型。</param>
 internal Converter(Conversion conversion, ILGenerator il, Type inputType, Type outputType)
 {
     Contract.Requires(conversion != null && il != null && inputType != null && outputType != null);
     this.conversion = conversion;
     this.il = il;
     this.inputType = inputType;
     this.outputType = outputType;
 }