bool IItemsCollection.Remove(RegistryEntry item) { var i = item as T; if (i == null) { return(false); } return(Items.Remove(i)); }
protected static bool InternalEquals(RegistryEntry left, RegistryEntry right) { if (object.ReferenceEquals(left, right)) { return(true); } if (object.ReferenceEquals(left, null)) { return(false); } if (object.ReferenceEquals(right, null)) { return(false); } return(left.GetType().Equals(right.GetType()) && string.Equals(left.Guid, right.Guid, StringComparison.OrdinalIgnoreCase)); }