Esempio n. 1
0
 public SelfContainedClassInstance(DeltinScript deltinScript, ISelfContainedClass classInfo, SelfContainedClassProvider provider) : base(classInfo.Name, provider)
 {
     _classInfo  = classInfo;
     ObjectScope = new Scope();
     StaticScope = new Scope();
     deltinScript.StagedInitiation.On(this);
 }
Esempio n. 2
0
        public SelfContainedClassProvider(DeltinScript deltinScript, ISelfContainedClass selfContainedClass) : base(selfContainedClass.Name)
        {
            _selfContainedClass = selfContainedClass;
            _deltinScript       = deltinScript;
            GenericTypes        = new AnonymousType[0];

            Instance = new SelfContainedClassInstance(deltinScript, selfContainedClass, this);
        }