Skip to content

A Rosyn-powered library to generate interfaces from extant classes

Notifications You must be signed in to change notification settings

dgmjr-io/InterfaceGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authors title lastmod created license keywords tags categories
dgmjr
README.md
2023-03-24-05:58:52
2023-03-24-05:58:52
MIT
DGMJR-IO
DGMJR-IO
DGMJR-IO

Interface Generator

You can use this library to generate an interface from an extant class. Let's say you want to create an interface for the DbContext class. You can do that with the following code:

[InterfaceGenerator(typeof(Microsoft.EntityFrameworkCore.DbContext))]
public partial interface IDbContext
{
}

Make sure to mark the interface as partial or it won't work.

About

A Rosyn-powered library to generate interfaces from extant classes

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •