Пример #1
0
        public static SampleSurrogateHashSet FromSurrogate(string s)
        {
            var result = new SampleSurrogateHashSet();

            foreach (var ch in s)
            {
                result.Add(ch);
            }
            return(result);
        }
Пример #2
0
 public static string ToSurrogate(SampleSurrogateHashSet obj) =>
 string.Join("", obj.OrderBy(ch => ch));