示例#1
0
        /// <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;
        }
示例#2
0
 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;
		}
示例#6
0
        /// <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;
        }
示例#7
0
        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;
        }