Code inspection: Use 'is' operatorLast modified: 30 July 2024 Category: Common Practices and Code Improvements ID: CanSimplifyIsInstanceOfType EditorConfig: resharper_can_simplify_is_instance_of_type_highlighting=[error|warning|suggestion|hint|none] Default severity: Suggestion Language: C# Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.This inspection suggests replacing IsInstanceOfType() invocations with the is keyword. Both ways of checking the object type are identical performance-wise, but is keyword is better in terms of readability.Suboptimal codepublic bool IsString(object value){ return typeof(string).IsInstanceOfType(value);}After the quick-fixpublic bool IsString(object value){ return value is string;}