{"id":21699883,"url":"https://github.com/jonasraoni/flatten-array","last_synced_at":"2026-04-18T01:37:46.896Z","repository":{"id":124279186,"uuid":"143776033","full_name":"jonasraoni/flatten-array","owner":"jonasraoni","description":"C# extension method to flatten N-dimensional arrays of any data type.","archived":false,"fork":false,"pushed_at":"2018-08-06T19:52:44.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T18:45:01.088Z","etag":null,"topics":["array","csharp","extension-methods","flatten"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonasraoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-06T19:52:34.000Z","updated_at":"2021-03-30T18:29:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e85867c-e453-403a-83e2-e71aabb51c55","html_url":"https://github.com/jonasraoni/flatten-array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonasraoni/flatten-array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fflatten-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fflatten-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fflatten-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fflatten-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasraoni","download_url":"https://codeload.github.com/jonasraoni/flatten-array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasraoni%2Fflatten-array/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: 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":["array","csharp","extension-methods","flatten"],"created_at":"2024-11-25T20:11:56.096Z","updated_at":"2026-04-18T01:37:46.875Z","avatar_url":"https://github.com/jonasraoni.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flatten Array\n\nC# extension method to flatten N-dimensional arrays of any data type.\n\n## Samples\n\n```\nvar intArray = new[, ,] { { { 1, 1 }, { 2, 3 } } };\nCollectionAssert.AreEqual(intArray.Flatten\u003cint\u003e(), new[] { 1, 1, 2, 3 });\n\nvar dynamicJaggedArray = new dynamic[] { 1, new dynamic[] { \"2\", 3, new { prop = 123 } } };\nCollectionAssert.AreEqual(dynamicJaggedArray.Flatten\u003cdynamic\u003e(), new dynamic[] { 1, \"2\", 3, new { prop = 123 } });\n\nvar intJaggedArray = new int[][] { new int[] { 1, 1 }, new int[] { 2, 3, 4 } };\nCollectionAssert.AreEqual(intJaggedArray.Flatten\u003cint\u003e(), new[] { 1, 1, 2, 3, 4 });\n\nvar stringJaggedArray = new dynamic[] { new[] { \"a\" }, new dynamic[] { \"b\", new[] { \"c\" } } };\nCollectionAssert.AreEqual(stringJaggedArray.Flatten\u003cstring\u003e(), new[] { \"a\", \"b\", \"c\" });\n```\n\n## Considerations\n\n- Developed using Visual Studio Community and .NET Framework 4.7.1.\n- Compatible with all types of arrays.\n- Generics was used only to define the return type.\n- Unit testing done through MSTest.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasraoni%2Fflatten-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasraoni%2Fflatten-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasraoni%2Fflatten-array/lists"}