GCCHigh.Extensions.List contains List extension methods for C# specifically targeted to the GCCHigh M365 environment. GCCHigh.Extensions supports all versions of.NET from 4.6.2 through 8.0.
$ dotnet add package GCCHigh.Extensions.ListThe following classes have been extended:
- System.Collections.Generic.List
with these methods:
Checks if the current string begins with the given target string.
For example:
"GCCHigh.Extensions rock!".BeginsWith("GCCHigh")
will return
true
whereas
"GCCHigh.Extensions rock!".BeginsWith("gcchigh")
will also return
true
because the ignorecase switch defaults to true. Using the
ignorecase switch like this
"GCCHigh.Extensions rock!".BeginsWith("gcchigh", false)
will return
false