GetFactory() static private method

static private GetFactory ( Type type ) : InstructionFactory
type System.Type
return InstructionFactory
Esempio n. 1
0
        public void EmitSetArrayItem(Type arrayType)
        {
            Type elementType = arrayType.GetElementType();

            if (elementType.IsClass || elementType.IsInterface)
            {
                Emit(InstructionFactory <object> .Factory.SetArrayItem());
            }
            else
            {
                Emit(InstructionFactory.GetFactory(elementType).SetArrayItem());
            }
        }
Esempio n. 2
0
 public void EmitTypeIs(Type type)
 {
     Emit(InstructionFactory.GetFactory(type).TypeIs());
 }
Esempio n. 3
0
 public void EmitDefaultValue(Type type)
 {
     Emit(InstructionFactory.GetFactory(type).DefaultValue());
 }
Esempio n. 4
0
 public void EmitNewArrayInit(Type elementType, int elementCount)
 {
     Emit(InstructionFactory.GetFactory(elementType).NewArrayInit(elementCount));
 }
Esempio n. 5
0
 public void EmitNewArray(Type elementType)
 {
     Emit(InstructionFactory.GetFactory(elementType).NewArray());
 }
Esempio n. 6
0
 public void EmitWrap(Type elementType)
 {
     Emit(InstructionFactory.GetFactory(elementType).WrapToNullable(elementType));
 }