Fix nullability warnings

This commit is contained in:
Alexander Luzgarev 2020-10-10 12:40:09 +02:00
parent 0b11ec088e
commit 2ebf772dd8
2 changed files with 4 additions and 4 deletions

View File

@ -150,9 +150,9 @@ namespace MatFileHandler
/// <param name="key">Field name.</param> /// <param name="key">Field name.</param>
/// <param name="value">Value (or null if the field is not present).</param> /// <param name="value">Value (or null if the field is not present).</param>
/// <returns>Success status of the query.</returns> /// <returns>Success status of the query.</returns>
#pragma warning disable CS8614 #pragma warning disable CS8767
public bool TryGetValue(string key, out IArray? value) public bool TryGetValue(string key, out IArray? value)
#pragma warning restore CS8614 #pragma warning restore CS8767
{ {
var success = Parent.Fields.TryGetValue(key, out var array); var success = Parent.Fields.TryGetValue(key, out var array);
if (!success) if (!success)

View File

@ -175,9 +175,9 @@ namespace MatFileHandler
} }
/// <inheritdoc /> /// <inheritdoc />
#pragma warning disable CS8614 #pragma warning disable CS8767
public bool TryGetValue(string key, out IArray? value) public bool TryGetValue(string key, out IArray? value)
#pragma warning restore CS8614 #pragma warning restore CS8767
{ {
return parent.TryGetValue(key, out value, index); return parent.TryGetValue(key, out value, index);
} }