Пример #1
0
 /// <summary>
 /// Checks whether the <paramref name="location"/> is already contained.
 /// </summary>
 private bool IsContainingLocation(UFile location)
 {
     if (ExistingLocations.Contains(location))
     {
         return(true);
     }
     return(ContainsLocation?.Invoke(location) ?? false);
 }
Пример #2
0
 /// <summary>
 /// Default delegate for location.
 /// </summary>
 private bool DefaultContainsLocation(UFile location)
 {
     if (ExistingLocations.Contains(location))
     {
         return(true);
     }
     if (ContainsLocation != null)
     {
         return(ContainsLocation(location));
     }
     return(false);
 }