How to create comparable objcet via -eq, like .NET object. For example:
class test{
$a
$b
test($a,$b){
$this.a=$a
$this.b=$b
}
}
$obj = [test]::new(4, 5)
$obj -eq [test]::new(4, 5)
# False
$pt = [System.Drawing.Point]::new(4, 5)
$pt -eq [System.Drawing.Point]::new(4, 5)
# True