{"id":22493409,"url":"https://github.com/ufcpp/internalreservedattributegenerator","last_synced_at":"2025-03-27T20:45:17.069Z","repository":{"id":49096728,"uuid":"381224542","full_name":"ufcpp/InternalReservedAttributeGenerator","owner":"ufcpp","description":"A C# Source Generator for generating C# reserved attributes with internal accessibility.","archived":false,"fork":false,"pushed_at":"2022-06-22T09:05:47.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T23:17:49.121Z","etag":null,"topics":["csharp-sourcegenerator"],"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/ufcpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ufcpp"}},"created_at":"2021-06-29T03:12:21.000Z","updated_at":"2024-06-05T15:48:45.000Z","dependencies_parsed_at":"2022-09-01T23:12:55.876Z","dependency_job_id":null,"html_url":"https://github.com/ufcpp/InternalReservedAttributeGenerator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FInternalReservedAttributeGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FInternalReservedAttributeGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FInternalReservedAttributeGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FInternalReservedAttributeGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufcpp","download_url":"https://codeload.github.com/ufcpp/InternalReservedAttributeGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924499,"owners_count":20694728,"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":["csharp-sourcegenerator"],"created_at":"2024-12-06T18:39:23.833Z","updated_at":"2025-03-27T20:45:17.035Z","avatar_url":"https://github.com/ufcpp.png","language":"C#","funding_links":["https://github.com/sponsors/ufcpp"],"categories":[],"sub_categories":[],"readme":"# InternalReservedAttributeGenerator\n\nA C# Source Generator for generating C# reserved attributes with internal accessibility.\n\nsee also: https://github.com/ufcpp/InternalReservedAttributeContent\n\nSome C# features depend on attributes and modifiers but these can be internal. For instance, you may get [CS0518](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0518?f1url=%3FappId%3Droslyn%26k%3Dk(CS0518)) \"Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported\" errors when using records (C# 9.0 feature) and you can avoid this error by adding the `IsExternalInit` class internally in your project.\n\n```cs\nnamespace System.Runtime.CompilerServices\n{\n    internal sealed class IsExternalInit { }\n}\n```\n\nThe InternalReservedAttributeGenerator automatically generates these attributes and modifiers:\n\n- IsExternalInit for [init-only properties](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/init.md) / [records](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/records.md)\n- ModuleInitializerAttribute for [module initializers](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/module-initializers.md)\n- SkipLocalsInitAttribute for [localsinit flag](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/skip-localsinit.md)\n- Attributes for [null-state static analysis](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/nullable-analysis)\n\n## NuGet\n\n[![NuGet](https://img.shields.io/nuget/v/InternalReservedAttributeGenerator?style=flat-square)](https://www.nuget.org/packages/InternalReservedAttributeGenerator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Finternalreservedattributegenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufcpp%2Finternalreservedattributegenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Finternalreservedattributegenerator/lists"}