check if type is string c# code example Example: C# check something is string if(value is string) { }