{"id":17013950,"url":"https://github.com/john-paul-r/getrequiresinit","last_synced_at":"2025-07-17T23:39:28.700Z","repository":{"id":126477226,"uuid":"484873592","full_name":"John-Paul-R/GetRequiresInit","owner":"John-Paul-R","description":"Injects init-checking logic for auto-property getters.","archived":false,"fork":false,"pushed_at":"2022-04-25T21:40:03.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T14:28:21.990Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/John-Paul-R.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-23T22:53:35.000Z","updated_at":"2022-04-23T22:54:32.000Z","dependencies_parsed_at":"2023-06-16T23:15:25.573Z","dependency_job_id":null,"html_url":"https://github.com/John-Paul-R/GetRequiresInit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/John-Paul-R/GetRequiresInit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John-Paul-R%2FGetRequiresInit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John-Paul-R%2FGetRequiresInit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John-Paul-R%2FGetRequiresInit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John-Paul-R%2FGetRequiresInit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/John-Paul-R","download_url":"https://codeload.github.com/John-Paul-R/GetRequiresInit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John-Paul-R%2FGetRequiresInit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264613794,"owners_count":23637438,"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-10-14T06:14:41.743Z","updated_at":"2025-07-10T17:04:19.853Z","avatar_url":"https://github.com/John-Paul-R.png","language":"C#","readme":"[![NuGet Status](https://img.shields.io/nuget/v/GetRequiresInit.Fody.svg)](https://www.nuget.org/packages/GetRequiresInit.Fody/)\n\n[//]: # (![Icon]\u0026#40;https://raw.githubusercontent.com/Fody/Home/master/GetRequiresInit/package_icon.png\u0026#41;)\n\n`GetRequiresInit` is a simple [Fody][fody-home] addin that adds runtime checks\nto validate that properties marked with the `[GetRequiresInit]` attribute have\nbeen initialied via their set method before their get method is called.\n\nCalling the get method before the set method throws an\n`InvalidOperationException`.\n\n## Usage\n\nSee also [Fody usage][fody-usage].\n\n\n### NuGet installation\n\nTODO: Actually make the package\n\nInstall the [GetRequiresInit.Fody NuGet package](https://www.nuget.org/packages/GetRequiresInit.Fody/) and update the [Fody NuGet package](https://www.nuget.org/packages/Fody/):\n\n```powershell\nPM\u003e Install-Package Fody\nPM\u003e Install-Package GetRequiresInit.Fody\n```\n\nThe `Install-Package Fody` is required since NuGet always defaults to the oldest, and most buggy, version of any dependency.\n\n\n### Add to FodyWeavers.xml\n\nAdd `\u003cGetRequiresInit/\u003e` to `FodyWeavers.xml`.\n\n```xml\n\u003cWeavers\u003e\n  \u003cGetRequiresInit/\u003e\n\u003c/Weavers\u003e\n```\n\n\n## The moving parts\n\nSee [writing an addin](/pages/addin-development.md)\n\n\n## Icon\n\n[Lego](https://thenounproject.com/term/lego/16919/) designed by [Timur Zima](https://thenounproject.com/timur.zima/) from [The Noun Project](https://thenounproject.com).\n\n[fody-home]: https://github.com/Fody/Home\n[fody-usage]: https://github.com/Fody/Home/blob/master/pages/usage.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-paul-r%2Fgetrequiresinit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohn-paul-r%2Fgetrequiresinit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-paul-r%2Fgetrequiresinit/lists"}