Daniel Little Coding Blog
Daniel Little Coding Blog

A blog about .net development and the web.

Our Newsletter

Like this blog? Get each new post as soon it's posted.



Daniel Little Coding Blog


Powershell typeof

Coming from C#, it provides the built in function typeof() that you can use to get the Type of a class. Powershell also makes it easy to get Type information. Wrapping the type in square brackets [TypeName] evaluates to an instance of System.Reflection.TypeInfo. Which you can then use to compare it as per normal. PS>"".GetTyp…

Daniel Little