CreatePrototype() static private method

Creates the DataView prototype object.
static private CreatePrototype ( ScriptEngine engine, DataViewConstructor constructor ) : ObjectInstance
engine ScriptEngine The script environment.
constructor DataViewConstructor A reference to the constructor that owns the prototype.
return ObjectInstance
コード例 #1
0
        //     INITIALIZATION
        //_________________________________________________________________________________________

        /// <summary>
        /// Creates a new DataView constructor.
        /// </summary>
        /// <param name="prototype"> The next object in the prototype chain. </param>
        internal DataViewConstructor(ObjectInstance prototype)
            : base(prototype, __STUB__Construct, __STUB__Call)
        {
            // Initialize the constructor properties.
            var properties = new List <PropertyNameAndValue>(3);

            InitializeConstructorProperties(properties, "DataView", 3, DataViewInstance.CreatePrototype(Engine, this));
            InitializeProperties(properties);
        }