Пример #1
0
        /// <summary>
        /// encodes with length prefix
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public static string LengthEncode(string text)
        {
            var stringable = NaturalStringable.New(text).DecorateWithLength();
            var rv         = stringable.GetValue();

            return(rv);
        }
Пример #2
0
 public static NaturalStringable MakeStringable(this string text)
 {
     return(NaturalStringable.New(text));
 }