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.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.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 |
---|
System.String |