Build() public static method

public static Build ( string name, NSPrototype prototype ) : STNamespace
name string
prototype NSPrototype
return STNamespace
Exemplo n.º 1
0
 public void Build(Dictionary<string,NSPrototype> prototypes)
 {
     foreach (KeyValuePair<string,NSPrototype> kvp in prototypes) {
         var ns = new STNamespace(kvp.Key, FullName + "." + kvp.Key);
         ns.Build (kvp.Value.Entries);
         Map[STSymbol.Get(kvp.Key)] = ns;
     }
 }
Exemplo n.º 2
0
 public static STNamespace Build(string name, NSPrototype prototype)
 {
     var ns = new STNamespace(name, name);
     ns.Build (prototype.Entries);
     return ns;
 }