/// <summary> /// Checks whether the <paramref name="id"/> is already contained. /// </summary> private bool IsContainingId(AssetId id) { if (ExistingIds.Contains(id)) { return(true); } return(ContainsAssetWithId?.Invoke(id) ?? false); }
/// <summary> /// Default delegate for ids. /// </summary> private bool DefaultContainsId(Guid guid) { if (ExistingIds.Contains(guid)) { return(true); } if (ContainsAssetWithId != null) { return(ContainsAssetWithId(guid)); } return(false); }