public static SyncEntityPrototype DecodeSyncEntity(string body) { var prototype = new SyncEntityPrototype(); try { prototype.DecodeFrom(body); } catch { throw; } return(prototype); }
public static string EncodeSyncEntity(SyncEntity src) { var syncBody = new SyncEntityPrototype(src); return(syncBody.Encode()); }