{"id":13629225,"url":"https://github.com/ignatandrei/RSCG_UtilityTypes","last_synced_at":"2025-04-17T04:33:21.674Z","repository":{"id":213750242,"uuid":"734820763","full_name":"ignatandrei/RSCG_UtilityTypes","owner":"ignatandrei","description":"Omit and Pick from TypeScript : https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys","archived":false,"fork":false,"pushed_at":"2024-01-06T22:32:15.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-03T00:10:10.587Z","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/ignatandrei.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-22T18:01:44.000Z","updated_at":"2024-07-13T22:25:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"e76a1f20-acb9-4727-987a-4f21282f7ca1","html_url":"https://github.com/ignatandrei/RSCG_UtilityTypes","commit_stats":null,"previous_names":["ignatandrei/rscg_utilitytypes"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_UtilityTypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_UtilityTypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_UtilityTypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_UtilityTypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatandrei","download_url":"https://codeload.github.com/ignatandrei/RSCG_UtilityTypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223118832,"owners_count":17090314,"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:05.028Z","updated_at":"2024-11-08T19:31:39.542Z","avatar_url":"https://github.com/ignatandrei.png","language":"C#","readme":"# RSCG_UtilityTypes\n\nOmit and Pick from TypeScript : https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys\n\ngenerating also extension for converting from one type to another . See demo project.\n\n## Usage\n\nAdd to your csproj file\n```xml\n  \u003cItemGroup\u003e\n\t  \u003cPackageReference Include=\"RSCG_UtilityTypes\" Version=\"2023.1223.1230\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"false\" /\u003e\n\t  \u003cPackageReference Include=\"RSCG_UtilityTypesCommon\" Version=\"2023.1223.1230\" /\u003e\n  \u003c/ItemGroup\u003e\n\n```\n\nIn C# 9.0\n\n```csharp\n[Omit(\"MoviePreviewSmall\", nameof(Actors),nameof(Year))]\n[Pick(\"MoviePreviewMinimal\", nameof(Title), nameof(Year))]\npublic class Movie\n{\n    public string? Title { get; set; }\n    public string? Director { get; set; }\n    public int Year { get; set; }\n    public string[]? Actors { get; set; }\n}\n```\n\nAnd 2 new classes will be generated , MoviePreviewSmall and MoviePreviewMinimal\n\n\n# More Roslyn Source Code Generators\n\nYou can find more RSCG with examples at [Roslyn Source Code Generators](https://ignatandrei.github.io/RSCG_Examples/v2/)\n","funding_links":[],"categories":["Content","Source Generators"],"sub_categories":["92. [RSCG_UtilityTypes](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_UtilityTypes) , in the [EnhancementClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) category","Functional Programming"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2FRSCG_UtilityTypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatandrei%2FRSCG_UtilityTypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2FRSCG_UtilityTypes/lists"}