{"id":22493349,"url":"https://github.com/ufcpp/recordconstructorgenerator","last_synced_at":"2025-08-03T01:32:05.254Z","repository":{"id":33268299,"uuid":"36912865","full_name":"ufcpp/RecordConstructorGenerator","owner":"ufcpp","description":"Roslyn Code Fix for a record (immutable class/struct) constructor generated from get-only properties.","archived":false,"fork":false,"pushed_at":"2022-06-23T02:02:46.000Z","size":76,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T07:52:31.625Z","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":"globant-ui/html5bootcamp","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":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-05T05:02:12.000Z","updated_at":"2023-08-29T10:30:45.000Z","dependencies_parsed_at":"2022-07-16T07:46:59.853Z","dependency_job_id":null,"html_url":"https://github.com/ufcpp/RecordConstructorGenerator","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/ufcpp%2FRecordConstructorGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FRecordConstructorGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FRecordConstructorGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FRecordConstructorGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufcpp","download_url":"https://codeload.github.com/ufcpp/RecordConstructorGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228514306,"owners_count":17932380,"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-12-06T18:39:04.757Z","updated_at":"2024-12-06T18:39:05.357Z","avatar_url":"https://github.com/ufcpp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecordConstructorGenerator\nA Code Fix for a record (immutable class/struct) constructor generated from get-only properties.\n\nThis inlcudes VSIX and NuGet packages of an analyzer created by using .NET Compiler Platform (Roslyn).\n\n- VSIX: https://visualstudiogallery.msdn.microsoft.com/941ef3c4-a523-4d77-8bcd-fdfeebb15853\n- NuGet: http://www.nuget.org/packages/RecordConstructorGenerator/\n\n## Usage\n- Insert a get-only auto property without a property initializer\n- Use 'Quick Action' (Lightbulb) to fix the code\n\n## Sample\n\noriginal source:\n\n```cs\n    class Point\n    {\n        public string Name { get; }\n\n        /// \u003csummary\u003e\n        /// x coordinate.\n        /// \u003c/summary\u003e\n        public int X { get; }\n\n        /// \u003csummary\u003e\n        /// x coordinate.\n        /// \u003c/summary\u003e\n        public int Y { get; }\n\n        public int A =\u003e X * Y;\n    }\n```\n\nthe generated result:\n\n```cs\n    class Point\n    {\n        public string Name { get; }\n\n        /// \u003csummary\u003e\n        /// x coordinate.\n        /// \u003c/summary\u003e\n        public int X { get; }\n\n        /// \u003csummary\u003e\n        /// x coordinate.\n        /// \u003c/summary\u003e\n        public int Y { get; }\n\n        public int A =\u003e X * Y;\n\n        /// \u003csummary\u003eRecord Constructor\u003c/summary\u003e\n        /// \u003cparam name=\"name\"\u003e\u003csee cref=\"Name\"/\u003e\u003c/param\u003e\n        /// \u003cparam name=\"x\"\u003e\u003csee cref=\"X\"/\u003e\u003c/param\u003e\n        /// \u003cparam name=\"y\"\u003e\u003csee cref=\"Y\"/\u003e\u003c/param\u003e\n        public Point(string name = default(string), int x = default(int), int y = default(int))\n        {\n            Name = name;\n            X = x;\n            Y = y;\n        }\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Frecordconstructorgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufcpp%2Frecordconstructorgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Frecordconstructorgenerator/lists"}