Skip to content

MethodBaseExtensions.IsPublic Method ​

Definition ​

Returns true if the method is public, that is, its Accessibility is Public; false otherwise.

c#
public static bool IsPublic(this MethodBase method);

View source

Parameters ​

NameTypeDescription
methodMethodBaseThe method.

Returns ​

Boolean

true if the method is Public; false otherwise.

Remarks ​

Equivalent to IsPublic; included for completion.