Creates a new instance of the DTO.
public T CreateNew()
Creates a new instance of the DTO.
public T CreateNew(IEnumerable<(IDtoProperty<T> Property, object? Value)> propertyValues)
If possible, the instance is created with the public default constructor, after which the specified properties (if any) are set to the specified values. If there is no public default constructor and/or one or more of the specified properties are read-only, the instance is created with a public constructor whose parameters match the properties of the DTO.