{"id":23170988,"url":"https://github.com/ignatandrei/rscg_static","last_synced_at":"2025-10-11T12:38:26.648Z","repository":{"id":47462116,"uuid":"401498919","full_name":"ignatandrei/RSCG_Static","owner":"ignatandrei","description":"Roslyn Source Code Generator - transform static classes into instances and interfaces ","archived":false,"fork":false,"pushed_at":"2023-08-23T18:02:38.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T22:27:17.882Z","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":"2021-08-30T22:08:40.000Z","updated_at":"2023-09-03T17:50:47.000Z","dependencies_parsed_at":"2024-08-01T22:52:01.278Z","dependency_job_id":null,"html_url":"https://github.com/ignatandrei/RSCG_Static","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ignatandrei/RSCG_Static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_Static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_Static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_Static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_Static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatandrei","download_url":"https://codeload.github.com/ignatandrei/RSCG_Static/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_Static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007167,"owners_count":26084247,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-18T04:15:48.666Z","updated_at":"2025-10-11T12:38:26.593Z","avatar_url":"https://github.com/ignatandrei.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSCG_Static\n\nRoslyn Source Code Generator - transform static classes into instances and interfaces \n\nMore, there is a MakeNew static method created to can have DI.\n\nJust put a function like this ( example for System.DateTime)\n```csharp\n        public Type GenerateInterfaceFromDate()=\u003etypeof(DateTime);\n```\n\n\nand the properties of the classes will be generated into interfaces and you can write:\n\n```csharp\n//for DI, register\n//ISystem_DateTime  with transient for new clsSystem_DateTime()\nConsole.WriteLine(\"Hello World!\");\nISystem_DateTime dateStatic = recSystem_DateTime.MakeNew();//static\nISystem_DateTime dateVar = new clsSystem_DateTime(); //variable = real \n\nConsole.WriteLine(dateStatic.Now.Second);\nConsole.WriteLine(dateVar.Now.Second);\nawait Task.Delay(10 * 1000);\nConsole.WriteLine(dateStatic.Now.Second);\nConsole.WriteLine(dateVar.Now.Second);\n```\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Frscg_static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatandrei%2Frscg_static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Frscg_static/lists"}