Пример #1
0
 public bool SetArgValue <T>(T arg)
 {
     try
     {
         XML  = Rc.SaveToXMLString <T>(arg);
         type = arg.GetType().Name;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Пример #2
0
 public Arg SetArgValue <T>(T arg, string Name)
 {
     try
     {
         XML     = Rc.SaveToXMLString <T>(arg);
         type    = arg.GetType().Name;
         ArgName = Name;
         return(this);
     }
     catch
     {
         return(null);
     }
 }