I get annoyed of these (by design) methods that appear in any class, because each class inherit from Object class, and they are part of the Object class.
Use This Code
EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>
EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)> _
EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)> _
EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)> _
EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)> _
Use This Code
#Region "Hide System Object"
<Browsable(False)> _
Public Shared Function Equals(ByVal obj As Object) As Boolean
Return Nothing ' MyBase.Equals(obj)
End Function
<Browsable(False)> _
Public Function GetHashCode() As Integer
Return MyBase.GetHashCode
End Function
<Browsable(False)> _
Public Function [GetType]() As Type
End Function
<Browsable(False)> _
Public Overridable Function ToString() As [String]
Return [GetType]().ToString()
End Function
<Browsable(False)> _
Public Shared Function ReferenceEquals(objA As Object, objB As Object) As Boolean
End Function
#End Region
No comments:
Post a Comment