Click or drag to resize

PropertyDependencyAttributeCreateDependencyMapping Method

Creates the dependency mapping from the attributes of the properties of the specified type.

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
public static Dictionary<string, IEnumerable<string>>? CreateDependencyMapping(
	Type? type
)

Parameters

type
Type: SystemType
The type.

Return Value

Type: DictionaryString, IEnumerableString
A dictionary that maps the property names to all direct and indirect dependent property names.
Exceptions
ExceptionCondition
InvalidOperationExceptionInvalid dependency definitions, i.e. dependency to non-existing property.
See Also