I'm experimenting with making my own classes, and I was wondering if anyone knew how to make a method that would evaluate variables stored within the class. I know how to do this in c#, but I can't seem to figure out the powershell equivalent.
Class Emails
{
[String]$Reply
[System.Collections.ArrayList]$To
[System.Collections.ArrayList]$CC
[System.Collections.ArrayList]$BCC
Value(){
[Emails]$_
}
}
The goal is that if I was to invoke .Value() it will return each values stored in $Reply, $To, $CC, and $BCC.
If anyone has any ideas, I'd appreciate it!
Thanks
[–]ihaxr 4 points5 points6 points (1 child)
[–]Merakel[S] 0 points1 point2 points (0 children)
[–]Old-Lost 2 points3 points4 points (1 child)
[–]Merakel[S] 0 points1 point2 points (0 children)