コード例 #1
0
    public static T FieldwiseClone <T> (this T template) where T : new()
    {
        var target = new T();

        CopyoverCache <T> .Copyover(template, target);

        return(target);
    }
コード例 #2
0
 public static void CopyFieldsFrom <T> (this T target, T template)
 {
     CopyoverCache <T> .Copyover(template, target);
 }