Пример #1
0
        public void Setup(ObjectInstance target)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            _constructor = NewConstructor();
            ConfigureConstructor(_constructor);
            ConfigurePrototype(_constructor.PrototypeObject);
            target.FastAddProperty(Name, _constructor, true, false, true);
        }
Пример #2
0
 public virtual void ConfigureConstructor(InteropConstructor <T> constructor)
 {
 }