Skip to content

Instantly share code, notes, and snippets.

@jkavanagh58
Last active October 31, 2019 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkavanagh58/fb70e4963f264f4142f0b74fb78c0c71 to your computer and use it in GitHub Desktop.
Save jkavanagh58/fb70e4963f264f4142f0b74fb78c0c71 to your computer and use it in GitHub Desktop.
VSCode PowerShell Snippet for using System.Collections.ArrayList to create an Array
"Array List using Collection": {
"prefix": "collarray",
"body": [
"# Create New Array\r",
"$${1:arrayName} = [System.Collections.ArrayList]@()\r",
"# Add items to array\r",
"$${1}.Add(\"${2:ItemValue}\") | Out-Null"
],
"description": "Form Array using .Net Collection"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment