MrKWatkins.Reflection 1.3.1 Help

MethodInfoExtensions Class

Definition

Extension methods for MethodInfo.

public static class MethodInfoExtensions

Methods

Name

Description

EnumerateOverloads(MethodInfo)

Enumerates the overloads of the specified method that are declared in the same type.

GetCSharpOperator(MethodInfo)

Returns the relevant CSharpOperator value if the specified method is a C# operator; null otherwise.

GetVirtuality(MethodInfo)

Gets the Virtuality of the specified MethodInfo.

HasPublicOrProtectedOverloads(MethodInfo)

Returns true if the specified MethodInfo has public or protected overloads, as viewed from an external assembly, i.e. their Accessibility is Public, Protected or ProtectedInternal; false otherwise.

IsCSharpOperator(MethodInfo)

Returns true if the specified method is a C# operator; false otherwise.

IsExtensionMethod(MethodInfo)

Returns true if the specified method is an extension method; false otherwise.

IsNew(MethodInfo)

Returns true if the specified method has the new modifier; false otherwise.

IsReturnNullableReferenceType(MethodInfo)

Returns true if the specified method's return type is a nullable reference type.

Last modified: 17 December 2024