Fix nullability warnings
This commit is contained in:
parent
0b11ec088e
commit
2ebf772dd8
@ -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)
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user