SetData() public method

Sets object data which is a transfer object.
public SetData ( object value ) : void
value object
return void
Exemplo n.º 1
0
 public static void SetDataToFiled(Field field, string value)
 {
     switch (field.FieldSetting.ShortName)
     {
         case "Integer":
             field.SetData(int.Parse(value));
             break;
         case "Boolean":
             field.SetData(bool.Parse(value));
             break;
         case "DateTime":
             field.SetData(DateTime.Parse(value));
             break;
         case "ShortText":
         case "LongText":
         default:
             field.SetData(value);
             break;
     }
 }