@@ -63,32 +63,32 @@ public static bool IsDestructor(this MethodInfo method)
63
63
64
64
public static bool IsEventAttach ( this MethodBase method )
65
65
{
66
- return method . IsSpecialName && method . Name . StartsWith ( "add_" , StringComparison . Ordinal ) ;
66
+ return method . Name . StartsWith ( "add_" , StringComparison . Ordinal ) ;
67
67
}
68
68
69
69
public static bool IsEventDetach ( this MethodBase method )
70
70
{
71
- return method . IsSpecialName && method . Name . StartsWith ( "remove_" , StringComparison . Ordinal ) ;
71
+ return method . Name . StartsWith ( "remove_" , StringComparison . Ordinal ) ;
72
72
}
73
73
74
74
public static bool IsPropertyGetter ( this MethodBase method )
75
75
{
76
- return method . IsSpecialName && method . Name . StartsWith ( "get_" , StringComparison . Ordinal ) ;
76
+ return method . Name . StartsWith ( "get_" , StringComparison . Ordinal ) ;
77
77
}
78
78
79
79
public static bool IsPropertyIndexerGetter ( this MethodBase method )
80
80
{
81
- return method . IsSpecialName && method . Name . StartsWith ( "get_Item" , StringComparison . Ordinal ) ;
81
+ return method . Name . StartsWith ( "get_Item" , StringComparison . Ordinal ) ;
82
82
}
83
83
84
84
public static bool IsPropertyIndexerSetter ( this MethodBase method )
85
85
{
86
- return method . IsSpecialName && method . Name . StartsWith ( "set_Item" , StringComparison . Ordinal ) ;
86
+ return method . Name . StartsWith ( "set_Item" , StringComparison . Ordinal ) ;
87
87
}
88
88
89
89
public static bool IsPropertySetter ( this MethodBase method )
90
90
{
91
- return method . IsSpecialName && method . Name . StartsWith ( "set_" , StringComparison . Ordinal ) ;
91
+ return method . Name . StartsWith ( "set_" , StringComparison . Ordinal ) ;
92
92
}
93
93
94
94
public static bool IsRefArgument ( this ParameterInfo parameter )
0 commit comments