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]);
|
||||
}
|
||||
}
|
||||
11
4/ClassLibraryProjects/StringLibrary/StringLibrary.csproj
Normal file
11
4/ClassLibraryProjects/StringLibrary/StringLibrary.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>UtilityLibraries</RootNamespace>
|
||||
<AssemblyName>UtilityLibraries</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user