/// <summary> /// Creates a bound built-in function. The instance may be null for built-in functions /// accessed for None. /// </summary> internal BuiltinFunction(object instance, BuiltinFunctionData /*!*/ data) { Assert.NotNull(data); _instance = instance; _data = data; }
internal GenericBuiltinFunction(object instance, BuiltinFunctionData /*!*/ data) : base(instance, data) { }
internal BuiltinFunction(string name, MethodBase[] originalTargets, Type declaringType, FunctionType functionType) { Assert.NotNull(name); Assert.NotNull(declaringType); Assert.NotNullItems(originalTargets); data = new BuiltinFunctionData(name, originalTargets, declaringType, functionType); instance = no_instance; }
internal GenericBuiltinFunction(object instance, BuiltinFunctionData data) : base(instance, data) { }
/// <summary> /// Creates a bound built-in function. The instance may be null for built-in functions /// accessed for null. /// </summary> internal BuiltinFunction(object boundTarget, BuiltinFunctionData funcData) { Assert.NotNull(data); data = funcData; instance = boundTarget; }
/// <summary> /// Creates a bound built-in function. The instance may be null for built-in functions /// accessed for None. /// </summary> private BuiltinFunction(object instance, BuiltinFunctionData/*!*/ data) { Assert.NotNull(data); _instance = instance; _data = data; }
internal BuiltinFunction(string/*!*/ name, MethodBase/*!*/[]/*!*/ originalTargets, Type/*!*/ declaringType, FunctionType functionType) { Assert.NotNull(name); Assert.NotNull(declaringType); Assert.NotNullItems(originalTargets); _data = new BuiltinFunctionData(name, originalTargets, declaringType, functionType); _instance = _noInstance; }