Last active
October 31, 2019 14:05
-
-
Save jkavanagh58/fb70e4963f264f4142f0b74fb78c0c71 to your computer and use it in GitHub Desktop.
VSCode PowerShell Snippet for using System.Collections.ArrayList to create an Array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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