TEST" I can explore this object using get-member (using the GM alias) MSH> $x |gm   TypeName: System.Xml.XmlDocument Name                        MemberType            Definition----                        ----------            ----------ToString                    CodeMethod            static System.St...add_NodeChanged             Method                System.Void add_...add_NodeChanging            Method                System.Void add_...... But now imagine that I want to exlore System.XML.XMLDocument ([XML])..." />
Job Opening for Tester of Web Apps at Moolya >>Could you spot this? This is intentional!
Like!

Sunday morning drive with my hair on fire: Types/Community/Synthetic types/Democracy/Cool XML tricks

Exploring types is a pain! Monad provides Get-Member which makes it pretty nice to explore an OBJECT but if you want to explore that object's type, you have to use the capabilities of the System.RuntimeType class. Let me make that distinction a little clearer.  Imagine that I've got some xml:$x=[XML]"TEST" I can explore this object using get-member (using the GM alias) MSH> $x |gm   TypeName: System.Xml.XmlDocument Name                        MemberType            Definition----                        ----------            ----------ToString                    CodeMethod            static System.St...add_NodeChanged             Method                System.Void add_...add_NodeChanging            Method                System.Void add_...... But now imagine that I want to exlore System.XML.XMLDocument ([XML])...

Read more...

Share |

Published By: Test Embedded - Monday, 26 November