Example #1
0
        public T Single()
        {
            if (Contents.Count == 1)
            {
                return(Contents.Single());
            }

            throw new Exception("Asked for Set1.Single; but there were " + Contents.Count + " entries for type " + typeof(T));
        }