WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TraceProperties

    Show / Hide Table of Contents

    Class TraceProperties

    Helper class for creating a string concatenating the string representation of all properties in an object.

    Inheritance
    System.Object
    TraceProperties
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.ComponentModel
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class TraceProperties
    Remarks

    The static ToString(Object) method of this helper class will loop through any property in a given object and check if the TracePropertyAttribute has been set. If it has been set, the string representation of the property will be appended to the resulting string.

    Constructors

    TraceProperties()

    Declaration
    public TraceProperties()

    Methods

    IsTraceProperty(PropertyInfo)

    Indicates whether the TracePropertyAttribute has been set for the property.

    Declaration
    public static bool IsTraceProperty(PropertyInfo info)
    Parameters
    Type Name Description
    System.Reflection.PropertyInfo info

    A System.Reflection.PropertyInfo.

    Returns
    Type Description
    System.Boolean

    True if property has a TracePropertyAttribute; False otherwise.

    ToString(Object)

    This method will loop through any property in a given object and append the string representation of the property if the TracePropertyAttribute has been set.

    Declaration
    public static string ToString(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved