CreatePrototype() статический приватный Метод

Creates the RegExp prototype object.
static private CreatePrototype ( ScriptEngine engine, RegExpConstructor constructor ) : ObjectInstance
engine ScriptEngine The script environment.
constructor RegExpConstructor A reference to the constructor that owns the prototype.
Результат ObjectInstance
Пример #1
0
        //     INITIALIZATION
        //_________________________________________________________________________________________

        /// <summary>
        /// Creates a new RegExp object.
        /// </summary>
        /// <param name="prototype"> The next object in the prototype chain. </param>
        internal RegExpConstructor(ObjectInstance prototype)
            : base(prototype, __STUB__Construct, __STUB__Call)
        {
            // Initialize the constructor properties.
            var properties = GetDeclarativeProperties(Engine);

            InitializeConstructorProperties(properties, "RegExp", 2, RegExpInstance.CreatePrototype(Engine, this));
            AddDeprecatedProperties(properties);
            InitializeProperties(properties);
        }