Class
SimplePropertyDescriptor

Describes a simple property to set or get in addition to its value and type

Definition

Namespace:ArtOfTest.WebAii.Messaging.Process

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class SimplePropertyDescriptor

Inheritance: objectSimplePropertyDescriptor

Constructors

SimplePropertyDescriptor(string, Type)

Create a new property descriptor

Declaration

cs-api-definition
public SimplePropertyDescriptor(string propertyName, Type type)

Parameters

propertyName

string

The property name.

type

Type

The property type.

SimplePropertyDescriptor(string, object)

Create a new property descriptor

Declaration

cs-api-definition
public SimplePropertyDescriptor(string propertyName, object value)

Parameters

propertyName

string

The property name.

value

object

The property value.

Properties

Name

Get the name of this property

Declaration

cs-api-definition
public string Name { get; }

Property Value

string

PropertyType

Gets property type

Declaration

cs-api-definition
public Type PropertyType { get; }

Property Value

Type

Value

Gets the value of this property

Declaration

cs-api-definition
public object Value { get; }

Property Value

object

Methods

ConvertValueType(string, Type)

Converts a value to the desired type.

Declaration

cs-api-definition
public static object ConvertValueType(string value, Type desiredType)

Parameters

value

string

The value.

desiredType

Type

The desired type.

Returns

object

The converted value as the desired type.

Serialize()

Serializes this descriptor to a JSON string.

Declaration

cs-api-definition
public string Serialize()

Returns

string

The string representation of this property