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