3 ms·
> How would you do it, though? Pipe around JSON or XML? Then you just have data structures, but not objects "just data structures" is a subset of objects - the
by SideburnsOfDoom 12y ago
> How would you do it, though? Pipe around JSON or XML? Then you just have data structures, but not objects
"just data structures" is a subset of objects - they are objects with data but no methods. i.e. DTOs. They're not always useful, but to say that they can't be accommodated in a pipeline because they "aren't objects" is not quite right.
- ygra 12y agoGranted, but a lot of niceness in PowerShell comes from the fact that you're not just piping around objects. As in, you don't need special commands to handle certain sorts of output (though there are things liks Stop-Service, Stop-Process, etc.) because you can just as well call the appropriate methods.