/// <summary> /// dehydrates hydrateable into the type prefix format /// </summary> /// <param name="hyd"></param> /// <returns></returns> public string Dehydrate(IStringable hyd) { if (hyd == null) return null; string data = hyd.Dehydrate(); return LengthEncoder.LengthEncodeList(hyd.GetType().AssemblyQualifiedName, data); }
/// <summary> /// dehydrates hydrateable into the type prefix format /// </summary> /// <param name="hyd"></param> /// <returns></returns> public string Dehydrate(IStringable hyd) { if (hyd == null) { return(null); } string data = hyd.Dehydrate(); return(LengthEncoder.LengthEncodeList(hyd.GetType().AssemblyQualifiedName, data)); }