BindHelperprovides functionality for generating objects on base of some Enum, while binding data contained in enum attributes to corresponding properties of specified objects.
BindHelpercomes to our aid - with it we can do such job in one statement:
Permission-objects equivalent to:
Bindallows to specify method which will be used during creation process and populating properties. All other properties values will be taken from
BindPropertyattributes marking enum values.
BindPropertyAttributealso allows to specify nested property to bind with using dots in property name. For example "Name.Eng".