示例#1
0
 private string StringFactoryNode(FactoryDependencyNode node, string[] dependencies)
 => $"(_SingletonInstances.__{node.InstanceName} ??= new {node.ImplimentationName}({string.Join(", ", new[] { "_SingletonInstances" }.Concat(dependencies))}))";
示例#2
0
 public DependencyNode(FactoryDependencyNode factoryDependencyNode)
 {
     _dependencyNodeType = DependencyNodeTypeEnum.Factory;
     _value = factoryDependencyNode;
 }