Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 470 Bytes

File metadata and controls

23 lines (16 loc) · 470 Bytes

DTOGenerator

Automatically generated records from interfaces

Example

public interface IUser {
    public Guid Id { get; }
    public string FirstName { get; }
    public string LastName { get; }
}

Generated code (readonly struct because IUser just contains value-types)

public readonly record struct User(Guid Id, string FirstName, string LastName);

Todo

  • Make it configurable #2