Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Warning
These extensions have been partially moved to the Microsoft.Toolkit.HighPerformance package. Please refer to the .NET API browser for a comprehensive list of available APIs.
Provides a few helpers for dealing with multidimensional and jagged arrays. Also, provides string helpers for debug output.
Syntax
using CommunityToolkit.WinUI.Extensions;
bool[,] inside = new bool[4, 5];
// Fill the inside of the boolean array with 'true' values.
inside.Fill(true, 1, 1, 3, 2);
Debug.WriteLine(inside.ToArrayString());
/*
Output:
[[False, False, False, False, False],
[False, True, True, True, False],
[False, True, True, True, False],
[False, False, False, False, False]]
*/
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows Community Toolkit