This file contains 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
$Cars = "Tyota","Hyundai","Ford" | |
#Foreach within the Array | |
$Cars | ForEach-Object { $_ } | |
#Foreach within the Array simpler | |
$Cars | ForEach { $_ } | |
#Foreach within the Array much simpler | |
$Cars | % { $_ } |
This file contains 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
Class Fruit { | |
#Set the variable | |
[string]$FruitName | |
#Create the constructor | |
Fruit ($FruitName) { | |
$this.FruitName = $FruitName | |
} | |
} |
NewerOlder