You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Piotr Szkudlarski edited this page Dec 15, 2018
·
4 revisions
Library needs to match constructor parameter with property / field and it does it as described in rule 2. below.
See given example constructor parameter (testConfigurations) matches with no case sensitive comparison with property name (TestConfigurations).
Rules:
library gets first constructor decorated by IniConstructor attribute
library first tries to match constructor parameters with properties / fields by name with case sensitive comparison. If nothing is found library tries to compare with StringComparison.InvariantCultureIgnoreCase.
if file does not contain value for property / field or if rule 2. does not find match library uses default value of property / field type.