예제 #1
0
 /// <summary>
 /// Clones the data element.
 /// </summary>
 public static T Clone <T>(T value)
 {
     return(value == null ? default(T) : ServiceJsonUtility.FromJson <T>(ServiceJsonUtility.ToJson(value)));
 }
예제 #2
0
 /// <summary>
 /// Returns the DTO as JSON.
 /// </summary>
 public override string ToString() => ServiceJsonUtility.ToJson(this);
예제 #3
0
 /// <summary>
 /// Clones the data element.
 /// </summary>
 public static T Clone <T>(T value) => value == null ? default : ServiceJsonUtility.FromJson <T>(ServiceJsonUtility.ToJson(value));