{"id":32556293,"url":"https://github.com/deanthecoder/dtc.core","last_synced_at":"2026-07-01T01:32:41.052Z","repository":{"id":320086464,"uuid":"853465762","full_name":"deanthecoder/DTC.Core","owner":"deanthecoder","description":"Core C# library (used by many deanthecoder repos)","archived":false,"fork":false,"pushed_at":"2026-06-28T16:51:56.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-28T18:22:14.036Z","etag":null,"topics":["csharp","framework","utility-library"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"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/deanthecoder.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-06T17:58:55.000Z","updated_at":"2026-06-28T16:51:59.000Z","dependencies_parsed_at":"2025-10-21T22:23:34.197Z","dependency_job_id":null,"html_url":"https://github.com/deanthecoder/DTC.Core","commit_stats":null,"previous_names":["deanthecoder/dtc.core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deanthecoder/DTC.Core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanthecoder%2FDTC.Core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanthecoder%2FDTC.Core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanthecoder%2FDTC.Core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanthecoder%2FDTC.Core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deanthecoder","download_url":"https://codeload.github.com/deanthecoder/DTC.Core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deanthecoder%2FDTC.Core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34989787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["csharp","framework","utility-library"],"created_at":"2025-10-28T22:53:58.398Z","updated_at":"2026-07-01T01:32:41.042Z","avatar_url":"https://github.com/deanthecoder.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Twitter Follow](https://img.shields.io/twitter/follow/deanthecoder?style=social)](https://twitter.com/deanthecoder)\n\n# DTC.Core - C# Core Library\n\n**DTC.Core** is a reusable C# library built for .NET, designed primarily for use with [Avalonia UI](https://avaloniaui.net/) applications. It contains a collection of utility classes, commands, extensions, converters, and more to simplify common tasks and promote code reuse across different projects.\n\n## Project Overview\n\nThis library provides a range of useful functionalities, from file commands and data converters to extensions for various .NET types. It helps streamline operations such as file handling, data conversion, and UI-related tasks.\n\nThe core components of this library include:\n- **Commands**: Reusable command patterns for actions such as file open/save.\n- **Converters**: Converters to simplify data transformations (e.g., Markdown to UI elements).\n- **Extensions**: Helper methods that extend the capabilities of core .NET types like `String`, `FileInfo`, and `Enumerable`.\n- **UI Components**: Avalonia-specific components for handling dialogs and dispatching events.\n- **Utilities**: General-purpose utilities like a logger, disposable resources, and periodic actions.\n\n### Key Files and Directories\n\n- **Commands**:  \n  Contains command patterns like `FileOpenCommand`, `FileSaveCommand`, and `RelayCommand`. These commands follow the MVVM pattern and are designed to be reusable across different projects.\n\n- **Converters**:  \n  Includes converters like `FileInfoToLeafNameConverter` and `MarkdownToInlinesConverter` that are designed to simplify UI bindings in Avalonia applications.\n\n- **Markdown**:  \n  The `DTC.Core.Markdown` namespace exposes `ConsoleMarkdown.Write(...)`, which allows Markdown to be written into a stream suitable for reading in the text console.\n\n- **Extensions**:  \n  Provides extension methods for core .NET types such as `StringExtensions`, `FileInfoExtensions`, and `EnumerableExtensions` to make common operations more concise and readable.\n\n- **UI**:  \n  Avalonia-specific UI components, including dialog services (`DialogService`) and message dialogs (`MessageDialog.axaml`). These components help with displaying dialogs and managing UI interactions.\n\n- **Validators**:  \n  Contains custom validation attributes, such as `HexStringAttribute` for validating hexadecimal strings.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanthecoder%2Fdtc.core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeanthecoder%2Fdtc.core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeanthecoder%2Fdtc.core/lists"}