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