Skip to content

Commit d84a150

Browse files
nickevansukRehanSaeed
authored andcommitted
Added documentation to function
1 parent 1c39858 commit d84a150

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Schema.NET/OneOrMany{T}.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ public override int GetHashCode()
273273
return 0;
274274
}
275275

276+
/// <summary>
277+
/// Checks whether the generic T item is a string that is either null or contains whitespace.
278+
/// </summary>
279+
/// <returns>
280+
/// Returns true if the supplied item is a string that is null or contains whitespace.
281+
/// </returns>
276282
private static bool IsStringNullOrWhiteSpace(T item) => item.GetType() == typeof(string) && string.IsNullOrWhiteSpace(item as string);
277283
}
278284
}

0 commit comments

Comments
 (0)