вторник, 21 октября 2008 г.

Using .NET Enum values in PowerShell


For using values of enum nested in type and/or namespace of already loaded assembly in PowerShell you would use following statement:


[SomeNamespace.EnclosingType+NestedEnum]::EnumValue