{"id":28261663,"url":"https://github.com/alastairlundy/dotextensions","last_synced_at":"2026-05-07T16:35:13.351Z","repository":{"id":174737998,"uuid":"646642703","full_name":"alastairlundy/DotExtensions","owner":"alastairlundy","description":"Useful extensions to C# classes and types.","archived":false,"fork":false,"pushed_at":"2026-05-05T17:26:19.000Z","size":3077,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-05T19:27:17.247Z","etag":null,"topics":["csharp-libarary","dotnet","extension-members","extension-methods","library","nuget","nuget-package","string-extensions","type-extensions","version-extensions"],"latest_commit_sha":null,"homepage":"","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/alastairlundy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2023-05-29T02:29:29.000Z","updated_at":"2026-05-05T17:26:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc2aba62-0af2-4ea4-8178-96aa7da3f06d","html_url":"https://github.com/alastairlundy/DotExtensions","commit_stats":null,"previous_names":["alastairlundy/developerkit","alastairlundy/systemextensions","alastairlundy/extensions","alastairlundy/extensions.system","alastairlundy/dotextensions"],"tags_count":166,"template":false,"template_full_name":null,"purl":"pkg:github/alastairlundy/DotExtensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FDotExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FDotExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FDotExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FDotExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alastairlundy","download_url":"https://codeload.github.com/alastairlundy/DotExtensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FDotExtensions/sbom","scorecard":{"id":1243894,"data":{"date":"2026-02-23T22:09:25Z","repo":{"name":"github.com/alastairlundy/DotExtensions","commit":"919605f0c6a921b48f30880246a480c7ef2cc342"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":6.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#code-review"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish-nuget.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/publish-nuget.yml:9","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":8,"reason":"dependency not pinned by hash detected -- score normalized to 8","details":["Warn: nugetCommand not pinned by hash: .github/workflows/publish-nuget.yml:42: pin your dependecies by either enabling central package management (https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management) or using a lockfile (https://learn.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies)","Info:   7 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   1 nugetCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#pinned-dependencies"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-nuget.yml:12"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"name":"SAST","score":6,"reason":"SAST tool is not run on all commits -- score normalized to 6","details":["Warn: 6 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}},{"name":"CI-Tests","score":5,"reason":"2 out of 4 merged PRs checked by a CI test -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}},{"name":"Branch-Protection","score":1,"reason":"branch protection is not maximal on development and all release branches","details":["Warn: branch protection not enabled for branch 'v9.7.x'","Warn: branch protection not enabled for branch 'v9.6.x'","Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is required - but no codeowners file found in repo","Info: 'last push approval' is required to merge on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}}]},"last_synced_at":"2026-02-23T23:56:07.287Z","repository_id":174737998,"created_at":"2026-02-23T23:56:07.287Z","updated_at":"2026-02-23T23:56:07.287Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-libarary","dotnet","extension-members","extension-methods","library","nuget","nuget-package","string-extensions","type-extensions","version-extensions"],"created_at":"2025-05-20T06:11:28.940Z","updated_at":"2026-05-07T16:35:13.305Z","avatar_url":"https://github.com/alastairlundy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotExtensions\r\nAn extension member library that enhances the experience of using .NET's types with useful features.\r\n\r\nNow updated to take advantage of C# 14 as of version 9.\r\n\r\n**NOTE**: Version 9.0 and onwards requires projects using DotExtension to set the C# language version to 14 or higher.\r\n\r\n[![NuGet](https://img.shields.io/nuget/v/DotExtensions.svg)](https://www.nuget.org/packages/DotExtensions/)\r\n[![Latest Pre-release NuGet](https://img.shields.io/nuget/vpre/DotExtensions.svg)](https://www.nuget.org/packages/DotExtensions/)\r\n[![NuGet](https://img.shields.io/nuget/dt/DotExtensions.svg)](https://www.nuget.org/packages/DotExtensions/)\r\n![License](https://img.shields.io/github/license/alastairlundy/DotExtensions)\r\n\r\n\r\n## Table of Contents\r\n* [Features](#features)\r\n* [Installing](#how-to-install-and-use-dotextensions)\r\n    * [Compatibility](#compatibility)\r\n* [Contributing](#how-to-contribute)\r\n* [Roadmap](#roadmap)\r\n* [License](#license)\r\n\r\n## Features\r\n* Empty directory detection via ``IsDirectoryEmpty`` extension method for the ``DirectoryInfo`` class.\r\n* Support for comparing versions via easy-to-understand methods e.g. ``version.IsNewerThan(Version otherVersion)`` etc.\r\n* DateTime and DateOnly extensions e.g. DateOnly's ToDateTime extension\r\n* Support for Detecting and Removing Special Characters\r\n* Support for Detecting and Removing Escape Characters\r\n\r\n^1 - StringSegment extensions are part of the ``DotExtensions.MsExtensions`` package.\r\n\r\n## How to install and use DotExtensions\r\nDotExtensions can be installed via the .NET SDK CLI, Nuget via your IDE or code editor's package interface, or via the Nuget website.\r\n\r\n| Package Name               | Nuget Link                                                                                | .NET SDK CLI command                              |\r\n|----------------------------|-------------------------------------------------------------------------------------------|---------------------------------------------------|\r\n| DotExtensions              | [DotExtensions Nuget](https://nuget.org/packages/DotExtensions)                           | ``dotnet add package DotExtensions``              |\r\n| DotExtensions.Memory       | [DotExtensions.Memory Nuget](https://nuget.org/packages/DotExtensions.Memory)             | ``dotnet add package DotExtensions.Memory``       |\r\n\r\n\r\n### Compatibility\r\nDotExtensions supports:\r\n* .NET Standard 2.0 (Limited Support)\r\n* .NET 8\r\n* .NET 9\r\n* .NET 10\r\n\r\nHowever, it is important to note that not all features may be supported by all TFMs. \r\n\r\n**Note for DateOnly**: Though DateOnly was originally part of .NET 6, this library's DateOnly extension methods are only supported for .NET 8 and newer .NET users since we don't target .NET 6 as a TFM due to being out of support.\r\n\r\n## How to Build the code\r\nPlease see [Building.md](https://github.com/alastairlundy/DotExtensions/blob/main/docs/Building.md).\r\n\r\n## How to Contribute\r\nThank you in advance for considering contributing to DotExtensions.\r\n\r\nPlease see the [CONTRIBUTING.md file](https://github.com/alastairlundy/DotExtensions/blob/main/CONTRIBUTING.md) for code and localization contributions.\r\n\r\nIf you want to file a bug report or suggest a potential feature to add, please check out the [GitHub issues page](https://github.com/alastairlundy/DotExtensions/issues/) to see if a similar or identical issue is already open.\r\nIf there is not already a relevant issue filed, please [file one here](https://github.com/alastairlundy/DotExtensions/issues/new) and follow the respective guidance from the appropriate issue template.\r\n\r\n## Roadmap\r\nDotExtensions aims to make working with different types in the System namespace in C# easier.\r\n\r\nAll stable releases must be stable and should not contain regressions.\r\n\r\nFuture updates should aim to focus on one or more of the following:\r\n* Adding extension methods that improve ease of use\r\n* Enhancing existing extension methods\r\n\r\n**Note**: This library is not a primitives library and does not seek to add new interfaces or implementations of interfaces. It is purely a library for extension methods.\r\n\r\n## License\r\nThis project is licensed under the MIT license.\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falastairlundy%2Fdotextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falastairlundy%2Fdotextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falastairlundy%2Fdotextensions/lists"}