Click or drag to resize
AB4D logo

DXAttributeCollectionGetValueOrDefaultT(DXAttributeType, T) Method

Gets the value of the specified attributeType or a defaultValue if the specified type T if the attributeType was not set.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public T GetValueOrDefault<T>(
	DXAttributeType attributeType,
	T defaultValue
)

Parameters

attributeType  DXAttributeType
type of attribute as DXAttributeType
defaultValue  T
value that is returned in case the specified attributeType is not set

Type Parameters

T

Return Value

T
value of the specified attributeType
See Also