Adding assig4
This commit is contained in:
14
4/ClassLibraryProjects/StringLibrary/StringLibrary.cs
Normal file
14
4/ClassLibraryProjects/StringLibrary/StringLibrary.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace UtilityLibraries;
|
||||
|
||||
public static class StringLibrary
|
||||
{
|
||||
public static bool StartsWithUpper(this string? str)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(str))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return char.IsUpper(str[0]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user