Show / Hide Table of Contents

Class PropertySupport

Provides support for extracting property information based on a property expression.

Inheritance
Object
PropertySupport
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class PropertySupport

Methods

ExtractPropertyName<T>(Expression<Func<T>>)

Extracts the property name from a property expression.

Declaration
public static string ExtractPropertyName<T>(Expression<Func<T>> propertyExpression)
Parameters
Type Name Description
Expression<Func<T>> propertyExpression

The property expression (e.g. p => p.PropertyName)

Returns
Type Description
String

The name of the property.

Type Parameters
Name Description
T

The object type containing the property specified in the expression.

Exceptions
Type Condition
ArgumentNullException

Thrown if the propertyExpression is null.

ArgumentException

Thrown when the expression is:
Not a MemberExpression
The MemberExpression does not represent a property.
Or, the property is static.

In This Article
Back to top Generated by DocFX