Table of Contents

Method GetDefaultValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDefaultValue(TypeCode)

Gets default value for the given TypeCode.

public static object? GetDefaultValue(TypeCode code)

Parameters

code TypeCode

Returns

object

GetDefaultValue(PropertyInfo, out object?)

Gets default value of the property using DefaultValueAttribute.

public static bool GetDefaultValue(PropertyInfo p, out object? defValue)

Parameters

p PropertyInfo

Property information.

defValue object

Default value of the property.

Returns

bool