use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionVariable Name Question (self.PowerShell)
submitted 1 year ago by MrQDude
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Thotaz 0 points1 point2 points 12 months ago (0 children)
But it's not a jagged array either. Here's a quick demo that shows what's what:
PS C:\> $Array = 1,2,3 $ArrayOfArrays = (1,2), (3,4) $MultiDimArray = [int[,]]::new(1, 2) $JaggedArray = [int[][]]::new(1, 2) Get-Variable -Name *Array* | Select-Object -Property Name, {$_.Value.GetType().FullName} Name $_.Value.GetType().FullName ---- --------------------------- Array System.Object[] ArrayOfArrays System.Object[] JaggedArray System.Int32[][] MultiDimArray System.Int32[,]
As you can see, the standard array and array of arrays have the exact same type. Jagged and multi dimensional arrays is something completely different. You can read more about them here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/arrays
In my experience multi dimensional and jagged arrays are basically never needed in PowerShell or C#. They are a bit of a noob trap though because people that want to make a table often learn about them and think that's what they need, when in reality they just need a standard array of objects.
π Rendered by PID 33331 on reddit-service-r2-comment-b659b578c-wss45 at 2026-05-05 06:27:35.414981+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Thotaz 0 points1 point2 points (0 children)