public override object Instantiate(Type type) { Func <object> constructor; if (!constructorCache.TryGetValue(type.TypeHandle.Value, out constructor)) { constructorCache.Add(type.TypeHandle.Value, constructor = EmitHelper.CreateParameterlessConstructorHandler(type)); } return(constructor()); }
public override object Instantiate(Type type) { return(EmitHelper.CreateParameterlessConstructorHandler(type)()); }