{"id":25972195,"url":"https://github.com/peteraritchie/dicore","last_synced_at":"2025-09-11T04:36:02.425Z","repository":{"id":139142746,"uuid":"58762650","full_name":"peteraritchie/DICore","owner":"peteraritchie","description":"An essential library for facilitating Dependency Inversion in .NET","archived":false,"fork":false,"pushed_at":"2018-07-25T16:26:32.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T15:18:30.055Z","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/peteraritchie.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}},"created_at":"2016-05-13T18:15:46.000Z","updated_at":"2019-09-25T00:35:03.000Z","dependencies_parsed_at":"2023-09-30T20:16:30.392Z","dependency_job_id":null,"html_url":"https://github.com/peteraritchie/DICore","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/peteraritchie%2FDICore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteraritchie%2FDICore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteraritchie%2FDICore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteraritchie%2FDICore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peteraritchie","download_url":"https://codeload.github.com/peteraritchie/DICore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945453,"owners_count":20046862,"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":"2025-03-05T00:32:34.438Z","updated_at":"2025-03-05T00:32:35.147Z","avatar_url":"https://github.com/peteraritchie.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DICore\n[![Build status](https://ci.appveyor.com/api/projects/status/nrh2ccoyl7s1mwws?svg=true)](https://ci.appveyor.com/project/peteraritchie/dicore)\n\nA library for facilitating [Dependency Inversion](https://en.wikipedia.org/wiki/Dependency_inversion_principle)\n\nWith many frameworks, interface-driven design is non-existant or spotty.  The ability for your code to *depend on abstractions* can be difficult.  While abstractions around framework types can be hand-crafted, and an application-specific abstraction that makes the implicit more explicit can be created, it's time-consuming and of specious value given the use of frameworks that themselves provide abstractions.\n\nThis library doesn't try to replace good design.  If an application-specific type can better wrap a framework type or set of framework types, the design should prefer that design methodology of wholesale use of this library.\n\nNone-the-less, this library begins the process of creating abstractions from .NET Framework types that don't fully implement abstractions (in this case interfaces)\n\nThe core contains a small set of utility classes to aid in reducing dependency on concrete classes (or the creation of concrete classes).  The code includes types such as `FuncComparable`, `FuncComparer`, `FuncEqualityComparer`, and `FuncEquatable` to provide delegate-based interface implementations for some common .NET Framework interfaces such as `IComparable`, `IComparer`, `IEqualityComparer`, and `IEquatable`.  In addition, the library includes the best practice of an abstract factory `IFactory` and a similar delegate-based implementation `FuncFactory` to aid in avoiding such anti-patterns as [Service Locator](http://blog.ploeh.dk/2010/02/03/ServiceLocatorisanAnti-Pattern/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteraritchie%2Fdicore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeteraritchie%2Fdicore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteraritchie%2Fdicore/lists"}