This commit is contained in:
committed by
GitHub
parent
e7279d2ff0
commit
a6b53b0a93
@@ -27,7 +27,18 @@ public interface IFileTypeCollection
|
||||
/// <returns>
|
||||
/// <c>true</c> if the file type associated with the specified entity type was found; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
bool TryGetValue(string entityType, [NotNullWhen(true)] out IFileType? fileType);
|
||||
bool TryGetValue(string entityType, [NotNullWhen(true)] out IFileType? fileType)
|
||||
{
|
||||
// TODO (V14): Remove default implementation
|
||||
if (Contains(entityType))
|
||||
{
|
||||
fileType = this[entityType];
|
||||
return true;
|
||||
}
|
||||
|
||||
fileType = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether this collection contains a file type for the specified entity type.
|
||||
@@ -44,5 +55,5 @@ public interface IFileTypeCollection
|
||||
/// <returns>
|
||||
/// The entity types.
|
||||
/// </returns>
|
||||
ICollection<string> GetEntityTypes();
|
||||
ICollection<string> GetEntityTypes() => Array.Empty<string>(); // TODO (V14): Remove default implementation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user