コード例 #1
0
        public IScopeable AddInstance(IScopeAppender scopeHandler, InstanceAnonymousTypeLinker genericsLinker)
        {
            var instance = new VariableInstance(this, genericsLinker, scopeHandler.DefinedIn());

            scopeHandler.Add(instance, Static);
            return(instance);
        }
コード例 #2
0
        public IScopeable AddInstance(IScopeAppender scopeHandler, InstanceAnonymousTypeLinker genericsLinker)
        {
            // Get the instance.
            IMethod instance = new DefinedMethodInstance(this, genericsLinker, scopeHandler.DefinedIn());

            scopeHandler.Add(instance, Static);
            return(instance);
        }
コード例 #3
0
 public void AddDefaultInstance(IScopeAppender scopeAppender) => throw new NotImplementedException();
コード例 #4
0
 public IScopeable AddInstance(IScopeAppender scopeHandler, InstanceAnonymousTypeLinker genericsLinker) => throw new NotImplementedException();
コード例 #5
0
 public void AddDefaultInstance(IScopeAppender scopeAppender) => scopeAppender.Add(this, Static);
コード例 #6
0
 public IScopeable AddInstance(IScopeAppender scopeHandler, InstanceAnonymousTypeLinker genericsLinker)
 {
     scopeHandler.Add(this, Static);
     return(this);
 }
コード例 #7
0
 public void AddDefaultInstance(IScopeAppender scopeHandler) => scopeHandler.Add(GetDefaultInstance(scopeHandler.DefinedIn()), Static);