using System; using System.Collections.Generic; using System.Text; namespace Google.ProtocolBuffers.Collections { /// /// Non-generic class with generic methods which proxy to the non-generic methods /// in the generic class. /// public static class Dictionaries { public static IDictionary AsReadOnly (IDictionary dictionary) { return dictionary.IsReadOnly ? dictionary : new ReadOnlyDictionary(dictionary); } } }