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