Exemplo n.º 1
0
 public static dynamic GetTSObject(SymbolAttributes dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
Exemplo n.º 2
0
 public Symbol(string name, SymbolType type)
 {
     Attributes = new SymbolAttributes();
     Name = name;
     Type = type;
 }
Exemplo n.º 3
0
 protected Symbol()
 {
     Attributes = new SymbolAttributes();
 }
Exemplo n.º 4
0
 static string SymbolAttributesToXMLString(SymbolAttributes attributes)
 {
     StringBuilder str = new StringBuilder();
     foreach (var key in attributes.Keys)
     {
         str.Append(string.Format("{0}=\"{1}\" ", key.ToLower(), attributes[key].ToString().Replace('"', '\'')));
     }
     return str.ToString();
 }