AbstractModelCollection<(Of <(<'T, TPropertyTracking>)>)>..::..Get<(Of <(<'TValue>)>)> Method

Fetches a value, returning Default(TValue) if it doesn't exist.

Namespace:  Tortuga.Anchor.Modeling.Internals
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


protected TValue Get<TValue>(
	string propertyName
)
Protected Function Get(Of TValue) ( _
	propertyName As String _
) As TValue

Type Parameters

TValue
Expected type

Parameters

propertyName
Type: String
Case-sensitive property name

Return Value

Exceptions


ExceptionCondition
[ArgumentNullException]propertyName;propertyName is null.
[ArgumentException]propertyName is empty.;propertyName

Remarks


Storing the default value will trigger validation but not a property-changed event.