{"id":16088525,"url":"https://github.com/konard/t4genericsexample","last_synced_at":"2025-06-14T02:04:56.639Z","repository":{"id":52419897,"uuid":"186060047","full_name":"Konard/T4GenericsExample","owner":"Konard","description":"Generating multiple implementations of a generic interface using T4 text templates and .NET Core","archived":false,"fork":false,"pushed_at":"2021-04-29T19:35:15.000Z","size":27,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T13:01:50.249Z","etag":null,"topics":["dotnet-core","generics","t4","text-template"],"latest_commit_sha":null,"homepage":"","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/Konard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-10T22:03:33.000Z","updated_at":"2023-01-14T19:33:30.000Z","dependencies_parsed_at":"2022-08-28T20:52:20.564Z","dependency_job_id":null,"html_url":"https://github.com/Konard/T4GenericsExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Konard/T4GenericsExample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konard%2FT4GenericsExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konard%2FT4GenericsExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konard%2FT4GenericsExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konard%2FT4GenericsExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Konard","download_url":"https://codeload.github.com/Konard/T4GenericsExample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konard%2FT4GenericsExample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259747214,"owners_count":22905310,"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":["dotnet-core","generics","t4","text-template"],"created_at":"2024-10-09T13:36:49.524Z","updated_at":"2025-06-14T02:04:56.612Z","avatar_url":"https://github.com/Konard.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CodeFactor](https://www.codefactor.io/repository/github/konard/t4genericsexample/badge)](https://www.codefactor.io/repository/github/konard/t4genericsexample)\n\n# T4GenericsExample\nThis example shows how to generate multiple generic interface implementations using [T4 text templates](https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates) implemented by [Mono/T4](https://github.com/mono/t4).\nThere is the `IGeneric\u003cT\u003e` interface.\nT4 is used to generate specific implementations of this interface for `UInt64`, `UInt32`, `UInt16` and `Byte` types.\nAll implementations share single base template `GenericClass.ttinclude` logic.\n\nIt is possible to achieve the same result using [C++/CLI template and .NET Framework 4.7.2](https://github.com/Konard/CppGenericsExample). But this approach works only for Windows while support for C++/CLI is not crossplatform.\n\n## Setup\nRequires .NET Core 2.2 SDK and Runtime.\n\nhttps://dotnet.microsoft.com/download\n\n## Run\n```\ndotnet run\n```\n\n## Development process videos\nhttps://www.youtube.com/playlist?list=PLeYxH0Vd8louZqRXtRXm1X3HAEYcwR4ZQ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonard%2Ft4genericsexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonard%2Ft4genericsexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonard%2Ft4genericsexample/lists"}