예제 #1
0
 public object Transform(OptimusPrime operatoor, string value)
 {
     return Content.Select(x => operatoor.Tranform(x.Trim()));
 }
예제 #2
0
 /// <summary>
 /// Tries to convert strings into their respected types.
 /// </summary>
 /// <param name="value">Value to convert into object</param>
 /// <param name="delimiter">Defaults to :: but can be overriden. Default is not a comma as, it will not work with an array of objects (comma separated properties)</param>
 /// <returns></returns>
 public static object FromString(string value, string delimiter = "::")
 {
     var transformer = new OptimusPrime();
     return transformer.Tranform(value);
 }