Esempio n. 1
0
 public static StateStructure LoadFromInterface(Type type)
 {
     if (StateStructureCache.ContainsKey(type))
     {
         return(StateStructureCache[type]);
     }
     else
     {
         StateStructure stateStructure = new StateStructure(type);
         StateStructureCache.Add(type, stateStructure);
         return(stateStructure);
     }
 }
Esempio n. 2
0
 public static StateStructure LoadFromInterface(Type type)
 {
     if (StateStructureCache.ContainsKey(type))
     {
         return StateStructureCache[type];
     }
     else
     {
         StateStructure stateStructure = new StateStructure(type);
         StateStructureCache.Add(type, stateStructure);
         return stateStructure;
     }
 }