Click or drag to resize

SettingsBaseDeriveDefaultValue Method

Attempts to get best default value for given member.

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
protected Object DeriveDefaultValue(
	string name,
	Object value
)
View Source

Parameters

name  String
Field or property name.
value  Object
Current field or property value.

Return Value

Object
The object that is the best default value.
Remarks
If value is equal to its default(type) value, then any value derived from DefaultValueAttribute will be used instead.
See Also