Пример #1
0
 private string StringSingletonNode(SingletonDependencyNode node, string[] dependencies)
 => $"(_SingletonInstances.__{node.InstanceName} ??= new {node.TypeName}({string.Join(", ", dependencies)}))";
Пример #2
0
 public DependencyNode(SingletonDependencyNode singletonDependencyNode)
 {
     _dependencyNodeType = DependencyNodeTypeEnum.Singleton;
     _value = singletonDependencyNode;
 }