summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs b/src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs
index 9b4d6e626e..a59ee839bc 100644
--- a/src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs
+++ b/src/System.Private.CoreLib/shared/System/ComponentModel/EditorBrowsableAttribute.cs
@@ -28,9 +28,7 @@ namespace System.ComponentModel
return true;
}
- EditorBrowsableAttribute other = obj as EditorBrowsableAttribute;
-
- return (other != null) && other.browsableState == browsableState;
+ return (obj is EditorBrowsableAttribute other) && other.browsableState == browsableState;
}
public override int GetHashCode()