Class MethodBaseIntrospectionProviderExtensions
Provides a set of extension methods for IMethodBaseIntrospectionProvider.
Inheritance
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public static class MethodBaseIntrospectionProviderExtensions : Object
Methods
IsAbstract(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is abstract.
Declaration
public static bool IsAbstract(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is abstract; otherwise, false. |
IsAssembly(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the potential visibility of the specified method
is described by System.Reflection.MethodAttributes.Assembly; that is, the method is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.
Declaration
public static bool IsAssembly(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to retrieve visibility for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the visibility of the specified |
IsConstructor(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is a constructor.
Declaration
public static bool IsConstructor(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to check for being a constructor. |
Returns
Type | Description |
---|---|
System.Boolean | true if this method is a constructor represented by a System.Reflection.ConstructorInfo object; otherwise, false. |
IsFamily(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the potential visibility of the specified method
is described by System.Reflection.MethodAttributes.Family; that is, the method is visible only within its class and derived classes.
Declaration
public static bool IsFamily(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to retrieve visibility for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the visibility of the specified |
IsFamilyAndAssembly(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the potential visibility of the specified method
is described by System.Reflection.MethodAttributes.FamANDAssem; that is, the method can be accessed from derived classes, but only if they are in the same assembly.
Declaration
public static bool IsFamilyAndAssembly(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to retrieve visibility for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the visibility of the specified |
IsFamilyOrAssembly(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the potential visibility of the specified method
is described by System.Reflection.MethodAttributes.FamORAssem; that is, the method can be accessed by derived classes wherever they are, and by classes in the same assembly.
Declaration
public static bool IsFamilyOrAssembly(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to retrieve visibility for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the visibility of the specified |
IsFinal(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is final.
Declaration
public static bool IsFinal(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is final; otherwise, false. |
IsHideBySig(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class.
Declaration
public static bool IsHideBySig(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is hidden by signature; otherwise, false. |
IsPrivate(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is private.
Declaration
public static bool IsPrivate(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is private; otherwise, false. |
IsPublic(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is public.
Declaration
public static bool IsPublic(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is public; otherwise, false. |
IsSpecialName(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method has a special name.
Declaration
public static bool IsSpecialName(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method has a special name; otherwise, false. |
IsStatic(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is static.
Declaration
public static bool IsStatic(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is static; otherwise, false. |
IsVirtual(IMethodBaseIntrospectionProvider, MethodBase)
Gets a value indicating whether the method is virtual.
Declaration
public static bool IsVirtual(this IMethodBaseIntrospectionProvider provider, MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
IMethodBaseIntrospectionProvider | provider | The reflection introspection provider. |
System.Reflection.MethodBase | method | The method to inspect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method is virtual; otherwise, false. |