2.0.0: Enhanced Builder Extensions
Added
AutoInitializeWithattribute to instructFluentifyto initialize a type using a static property or method defined within a given type.FLTFY09to inform engineers when the target for initialization is not valid for use with theAutoInitializeWithattribute.FLTFY10to inform engineers when the target for initialization has been annotated with theAutoInitializeWithattribute, which will be ignored byFluentifyin the presence of theSkipAutoInitialization.
Hideattribute to instructFluentifyto generate an extension methods with internal scope for the annotated property.FLTFY11to inform engineers whenHidehas been placed on a property of a type that is not annotated withFluentify.FLTFY12to inform engineers whenHidehas been placed on a property that isIgnoredbyFluentify.
Withextension for all classes, enabling engineers to construct copies using optional property factories.- The
Withextension is intended to simplify the process of authoring manual extension methods.
- The
Changed
- Builder extensions are now created for most reference types which will use the current instance assigned to the property as a starting point. When no instance is assigned, and the type adheres to the
new()constraint, a new instance will be created, as was the case in the previous version. If, however, the type does not adhere to thenew()constraint, aNotSupportedExceptionwill be thrown. Breaking Change
Full Changelog: 1.9.1...2.0.0