Show / Hide Table of Contents

Class PropertyInfoIntrospectionProviderExtensions

Provides a set of extension methods for IPropertyInfoIntrospectionProvider.

Inheritance
System.Object
PropertyInfoIntrospectionProviderExtensions
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public static class PropertyInfoIntrospectionProviderExtensions : Object

Methods

GetAccessors(IPropertyInfoIntrospectionProvider, PropertyInfo)

Returns the public accessors for this property.

Declaration
public static IReadOnlyList<MethodInfo> GetAccessors(this IPropertyInfoIntrospectionProvider provider, PropertyInfo property)
Parameters
Type Name Description
IPropertyInfoIntrospectionProvider provider

The reflection introspection provider.

System.Reflection.PropertyInfo property

The property to get the accessors for.

Returns
Type Description
System.Collections.Generic.IReadOnlyList<System.Reflection.MethodInfo>

An array of System.Reflection.MethodInfo objects that reflect the public get, set, and other accessors of the property reflected by the current instance, if found; otherwise, this method returns an array with zero (0) elements.

GetGetMethod(IPropertyInfoIntrospectionProvider, PropertyInfo)

Returns the public get accessor for this property.

Declaration
public static MethodInfo GetGetMethod(this IPropertyInfoIntrospectionProvider provider, PropertyInfo property)
Parameters
Type Name Description
IPropertyInfoIntrospectionProvider provider

The reflection introspection provider.

System.Reflection.PropertyInfo property

The property to get the get accessor for.

Returns
Type Description
System.Reflection.MethodInfo

A System.Reflection.MethodInfo object representing the public get accessor for this property, or null if the get accessor is non-public or does not exist.

GetSetMethod(IPropertyInfoIntrospectionProvider, PropertyInfo)

Returns the public set accessor for this property.

Declaration
public static MethodInfo GetSetMethod(this IPropertyInfoIntrospectionProvider provider, PropertyInfo property)
Parameters
Type Name Description
IPropertyInfoIntrospectionProvider provider

The reflection introspection provider.

System.Reflection.PropertyInfo property

The property to get the set accessor for.

Returns
Type Description
System.Reflection.MethodInfo

A System.Reflection.MethodInfo object representing the public set accessor for this property, or null if the set accessor is non-public or does not exist.

IsSpecialName(IPropertyInfoIntrospectionProvider, PropertyInfo)

Gets a value indicating whether the property has the SpecialName attribute.

Declaration
public static bool IsSpecialName(this IPropertyInfoIntrospectionProvider provider, PropertyInfo property)
Parameters
Type Name Description
IPropertyInfoIntrospectionProvider provider

The reflection introspection provider.

System.Reflection.PropertyInfo property

The property to inspect.

Returns
Type Description
System.Boolean

true if the property has the SpecialName attribute set; otherwise, false.

In This Article
Back to top Generated by DocFX