Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
 }