예제 #1
0
        internal static ConstructorFunction GetConstructor(Type type, BuiltinFunction realTarget, params MethodBase[] mems) {
            ConstructorFunction res = null;

            if (mems.Length != 0) {
                ReflectionCache.MethodBaseCache cache = new ReflectionCache.MethodBaseCache("__new__", mems);
                lock (_ctors) {
                    if (!_ctors.TryGetValue(cache, out res)) {
                        _ctors[cache] = res = new ConstructorFunction(realTarget, mems);
                    }
                }
            }

            return res;
        }
예제 #2
0
 public ConstructorOverloadMapper(ConstructorFunction builtinFunction, object instance)
     : base(builtinFunction, instance)
 {
 }
 public ConstructorOverloadMapper(ConstructorFunction builtinFunction, object instance)
     : base(builtinFunction, instance) {
 }