Skip to end of metadata
Go to start of metadata

Represents a class which describes the property description.

Definition

public class PropertyDescription

Summary

The following table summarizes the members exposed in this class.

Public Constructors

PropertyDescription Constructor(string, Type, Type, object) Create an instance of PropertyDescription.
PropertyDescription Constructor(string, Type, Type, object, bool) Create an instance of PropertyDescription.

Public Properties

DefaultValue Gets the default value.
OwnerType Gets the owner type.
PropertyName Gets the property name.
PropertyType Gets the property type.

Static Methods

GetDefaultValue(Type, string) Gets the default value of specified property.
GetDefaultValue(object, string) Gets the default value of specified property.
GetPropertyDescription(Type, string) Get the property description of an object.
GetPropertyDescription(object, string) Get the property description of an object.
Register(PropertyDescription) Register property description of an object.

Public Constructors

public PropertyDescription(string propertyName, Type propertyType, Type ownerType, object defaultValue)

Create an instance of PropertyDescription.

Parameters

propertyName The property name.
propertyType The property type.
ownerType The owner type.
defaultValue The default value.

public PropertyDescription(string propertyName, Type propertyType, Type ownerType, object defaultValue, bool doNotClone)

Create an instance of PropertyDescription.

Parameters

propertyName The property name.
propertyType The property type.
ownerType The owner type.
defaultValue The default value.
doNotClone Specifies whether the property should not be cloned.

Public Properties

public object DefaultValue { get; }

Gets the default value.

public Type OwnerType { get; }

Gets the owner type.

public string PropertyName { get; }

Gets the property name.

public Type PropertyType { get; }

Gets the property type.

Static Methods

public static object GetDefaultValue(Type ownerType, string propertyName)

Gets the default value of specified property.

Parameters

ownerType The owner type.
propertyName The property name.

Return Types

The default value.

public static object GetDefaultValue(object owner, string propertyName)

Gets the default value of specified property.

Parameters

owner The object.
propertyName The property name.

Return Types

The default value.

public static PropertyDescription GetPropertyDescription(Type ownerType, string propertyName)

Get the property description of an object.

Parameters

ownerType The owner type.
propertyName The property name.

Return Types

The property description.

public static PropertyDescription GetPropertyDescription(object owner, string propertyName)

Get the property description of an object.

Parameters

owner The object.
propertyName The property name.

Return Types

The property description.

public static PropertyDescription Register(PropertyDescription property)

Register property description of an object.

Parameters

property The property description.

Return Types

The property description.
  • No labels