Exemple #1
0
 /// <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);
 }
Exemple #2
0
        /// <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));
        }