Exemplo n.º 1
0
 public void Add(VObjectField Field)
 {
     if (!this.Fields.ContainsKey(Field.Name))
     {
         Fields.Add(Field.Name, Field);
     }
 }
Exemplo n.º 2
0
 public void Add(string name, object Field)
 {
     if (!this.Fields.ContainsKey(name))
     {
         if (Field is VObjectField)
         {
             Fields.Add(name, (VObjectField)Field);
         }
         var vf = new VObjectField();
         vf.Name = name;
         if (Field is List <object> )
         {
             vf.Objects = Field as List <object>;
             vf.UpdateCommonType();
         }
         else
         {
             vf.Objects.Add(Field);
         }
         Fields.Add(name, vf);
     }
 }