Exemplo n.º 1
0
        public static SampleSurrogateHashSet FromSurrogate(string s)
        {
            var result = new SampleSurrogateHashSet();

            foreach (var ch in s)
            {
                result.Add(ch);
            }
            return(result);
        }
Exemplo n.º 2
0
 public static string ToSurrogate(SampleSurrogateHashSet obj) =>
 string.Join("", obj.OrderBy(ch => ch));