how to check if string contains only whitespace c#?
C# | IsNullOrWhiteSpace() Method In C#, IsNullOrWhiteSpace() is a string method. It is used to check whether the specified string is null or contains only white-space characters. A string will be null if it has not been assigned a value or has explicitly been assigned a value of null.