Skip to content

Automatically generated records from interfaces

Notifications You must be signed in to change notification settings

IDjinn/DTO.Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatically generated records from interfaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages