DtoInfo<T>.CreateNew method (1 of 2)

Creates a new instance of the DTO.

public T CreateNew()

See Also


DtoInfo<T>.CreateNew method (2 of 2)

Creates a new instance of the DTO.

public T CreateNew(IEnumerable<(IDtoProperty<T> Property, object? Value)> propertyValues)

Remarks

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.

See Also