menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PropertySupport - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PropertySupport

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

    Inheritance
    System.Object
    PropertySupport
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.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
    System.Linq.Expressions.Expression<System.Func<T>> propertyExpression

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

    Returns
    Type Description
    System.String

    The name of the property.

    Type Parameters
    Name Description
    T

    The object type containing the property specified in the expression.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown if the propertyExpression is null.

    System.ArgumentException

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

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved