using System.Collections.ObjectModel; namespace UmbracoExamine { internal class StaticFieldCollection : KeyedCollection { protected override string GetKeyForItem(StaticField item) { return item.Name; } /// /// Implements TryGetValue using the underlying dictionary /// /// /// /// public bool TryGetValue(string key, out StaticField field) { if (Dictionary == null) { field = null; return false; } return Dictionary.TryGetValue(key, out field); } } }