Skip to end of metadata
Go to start of metadata

Provides various extensions methods for PropertyInfo

Definition

public static class PropertyInfoExtensions

Summary

The following table summarizes the members exposed in this class.

Static Methods

GetAttribute<T>(MemberInfo) Gets specific attribute of a member.
IsNavigationProperty(PropertyInfo) Gets a value indicating whether the underlying property is a navigation property.

Static Methods

public static T GetAttribute<T>(MemberInfo info)

Gets specific attribute of a member.

Type Parameters

T

Parameters

info Member info.

Return Types

Information about specific member's attribute.

public static bool IsNavigationProperty(PropertyInfo info)

Gets a value indicating whether the underlying property is a navigation property.

Parameters

info Property info.

Return Types

true if the underlying property is a navigation property; otherwise, false.
  • No labels