{"id":13629198,"url":"https://github.com/Frederik91/MakeInterface","last_synced_at":"2025-04-17T04:33:12.973Z","repository":{"id":64878786,"uuid":"578774351","full_name":"Frederik91/MakeInterface","owner":"Frederik91","description":"Generates interface for class","archived":false,"fork":false,"pushed_at":"2024-01-25T12:15:17.000Z","size":84,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T19:43:26.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frederik91.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-12-15T21:14:21.000Z","updated_at":"2024-03-07T08:03:53.000Z","dependencies_parsed_at":"2024-01-25T13:26:18.587Z","dependency_job_id":"36f06cfe-d16c-4520-85e8-bde782bfb1f5","html_url":"https://github.com/Frederik91/MakeInterface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FMakeInterface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FMakeInterface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FMakeInterface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frederik91%2FMakeInterface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frederik91","download_url":"https://codeload.github.com/Frederik91/MakeInterface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249316056,"owners_count":21249885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T22:01:04.341Z","updated_at":"2025-04-17T04:33:12.588Z","avatar_url":"https://github.com/Frederik91.png","language":"C#","funding_links":[],"categories":["Content"],"sub_categories":["99. [MakeInterface.Generator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/MakeInterface.Generator) , in the [Interface](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#interface) category"],"readme":"# MakeInterface\nCreates an interface of a class using source generator\n\n[![.NET](https://github.com/Frederik91/MakeInterface/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Frederik91/MakeInterface/actions/workflows/dotnet.yml)\n\n## Usage\nAdd the attribute to the class you want to generate the interface for\n```csharp\n[GenerateInterface]\npublic class MyClass\n{\n\tpublic string MyProperty { get; set; }\n\tpublic void MyMethod() { }\n}\n```\n\nThe generated interface will then be generated as IMyClass.g.cs\n```csharp\npublic interface IMyClass\n{\n\tstring MyProperty { get; set; }\n\tvoid MyMethod();\n}\n```\n\nYou can then implement the interface in your class\n```csharp\npublic class MyClass : IMyClass\n{\n\tpublic string MyProperty { get; set; }\n\tpublic void MyMethod() { }\n}\n```\n\n## Installation\nInstall the NuGet package [MakeInterface](https://www.nuget.org/packages/MakeInterface.Generator/)\n\nYou can either create the attribute yourself or use the one provided in the package [MakeInterface.Contracts](https://www.nuget.org/packages/MakeInterface.Contracts/)\n\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrederik91%2FMakeInterface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFrederik91%2FMakeInterface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFrederik91%2FMakeInterface/lists"}