{"id":22812360,"url":"https://github.com/jpmikkers/baksteen.extensions.wherenotnull","last_synced_at":"2026-02-18T03:31:38.414Z","repository":{"id":65504704,"uuid":"472020973","full_name":"jpmikkers/Baksteen.Extensions.WhereNotNull","owner":"jpmikkers","description":"Extension methods to skip null elements from a sequence","archived":false,"fork":false,"pushed_at":"2025-02-20T10:16:18.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T22:53:46.952Z","etag":null,"topics":["csharp","extension","extension-method","nullable"],"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/jpmikkers.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":"2022-03-20T15:28:25.000Z","updated_at":"2025-02-20T10:16:21.000Z","dependencies_parsed_at":"2025-03-30T21:31:50.534Z","dependency_job_id":"d5649bed-8f2a-4717-8604-6dc8edc1e4cb","html_url":"https://github.com/jpmikkers/Baksteen.Extensions.WhereNotNull","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jpmikkers/Baksteen.Extensions.WhereNotNull","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Extensions.WhereNotNull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Extensions.WhereNotNull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Extensions.WhereNotNull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Extensions.WhereNotNull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmikkers","download_url":"https://codeload.github.com/jpmikkers/Baksteen.Extensions.WhereNotNull/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Extensions.WhereNotNull/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021014,"owners_count":26086947,"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-14T02:00:06.444Z","response_time":60,"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","extension","extension-method","nullable"],"created_at":"2024-12-12T12:12:11.612Z","updated_at":"2025-10-14T20:16:50.773Z","avatar_url":"https://github.com/jpmikkers.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baksteen.Extensions.WhereNotNull\n\nThis package contains a pair of IEnumerable extension methods named `WhereNotNull()`. The method skips all null elements from a sequence.\nThis is useful for projects that have nullable reference types enabled because it converts `IEnumerable\u003cT?\u003e` into `IEnumerable\u003cT\u003e` .\n  \n## How to use:\n  \n  For nullable reference types:\n  \n    using Baksteen.Extensions.WhereNotNull;\n    ...\n    var seq = new string?[] { \"one\", null, \"two\", null, null, \"three\", null, null, null }\n    var result = seq.WhereNotNull();\n    // the result is IEnumerable\u003cstring\u003e { \"one\", \"two\", \"three\" }\n  \n  For nullable value types:\n  \n    using Baksteen.Extensions.WhereNotNull;\n    ...\n    var seq = new int?[] { 1, null, 2, null, null, 3, null, null, null }\n    var result = seq.WhereNotNull();\n    // the result is IEnumerable\u003cint\u003e { 1, 2, 3 }\n\n## See also\n\nFor more insight on the rationale of this extension, see:\n\n* https://github.com/dotnet/runtime/issues/30381\n* https://stackoverflow.com/questions/59431558/using-linqs-where-select-to-filter-out-null-and-convert-the-type-to-non-nullabl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmikkers%2Fbaksteen.extensions.wherenotnull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmikkers%2Fbaksteen.extensions.wherenotnull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmikkers%2Fbaksteen.extensions.wherenotnull/lists"}