{"id":19744218,"url":"https://github.com/milleniumbug/vancestubbs","last_synced_at":"2026-03-06T16:33:34.614Z","repository":{"id":92565364,"uuid":"114514284","full_name":"milleniumbug/VanceStubbs","owner":"milleniumbug","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-22T21:15:18.000Z","size":218,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T20:42:09.484Z","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/milleniumbug.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":"2017-12-17T06:18:04.000Z","updated_at":"2018-07-22T21:15:19.000Z","dependencies_parsed_at":"2023-03-22T02:33:10.069Z","dependency_job_id":null,"html_url":"https://github.com/milleniumbug/VanceStubbs","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/milleniumbug%2FVanceStubbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milleniumbug%2FVanceStubbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milleniumbug%2FVanceStubbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milleniumbug%2FVanceStubbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milleniumbug","download_url":"https://codeload.github.com/milleniumbug/VanceStubbs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241076700,"owners_count":19905637,"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-11-12T01:42:15.117Z","updated_at":"2026-03-06T16:33:34.555Z","avatar_url":"https://github.com/milleniumbug.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"VanceStubbs [![Build status](https://ci.appveyor.com/api/projects/status/w2k237to1bh6hqon?svg=true)](https://ci.appveyor.com/project/milleniumbug/vancestubbs)\n======\n\nReflection.Emit-based library that provides stubs, proxies, AOP and magic.\n\n[NuGet](https://www.nuget.org/packages/VanceStubbs/1.0.0)\n\nAPI\n-----\n\nGiven a `var factory = new VanceStubbs.Factory();`:\n\n- `factory.OfStubs.WhiteHole\u003cT\u003e()` - creates an instance of `T` that implements every abstract method and property by throwing a `NotImplementedException`\n- `factory.OfStubs.BlackHole\u003cT\u003e()` - creates an instance of `T` that implements every abstract method and property by returning a `default` and otherwise doing nothing.\n- `factory.OfProxies.NotifyChangedProxy\u003cT\u003e(args)` - creates an instance of `T` (with the passed constructor arguments) that implements every abstract property as a notifying property with a backing field.\n- `factory.OfProxies.For\u003cT\u003e()` - creates an AOP proxy type builder.\n- `new TypeDictionary\u003cValue\u003e(enumerableOfTypeToValueMappings)` - creates a `IReadOnlyDictionary\u003cType, Value\u003e` that uses overload resolution rules to match a most specific type. (warning: passing a `typeof(AbstractNonDefaultConstructibleClass)` as a key doesn't currently work. This will change in the future)\n\n\nMemory usage\n------\n\nAll instances can be created either through a static factory or non-static factories. Each dynamically created type is never freed if you use a static factory, therefore it's highly recommended to use a non-static factory if you want to control over memory usage.\n\n*Implementation detail*: A `VanceStubbs.Factory` composes over an `AssemblyBuilder` created with `RunAndCollect`. These assemblies will be collected if there's no reference to a factory or dynamically created object instances.\n\n\n\nName...?\n--------\n\n[Vance Stubbs from WH40K: Dawn of War: Soulstorm](https://1d4chan.org/wiki/Vance_Motherfucking_Stubbs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilleniumbug%2Fvancestubbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilleniumbug%2Fvancestubbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilleniumbug%2Fvancestubbs/lists"}