I am having the following sample enum in my Mvc application and I need to reuse it in Power-Shell.
namespace namespace_name
{
public enum test
{
sample1,
sample2
}
}
I need to use the above enum in PowerShell. I have come across the following link, https://social.technet.microsoft.com/wiki/contents/articles/26436.how-to-create-and-use-enums-in-powershell.aspx .
I don't know how to use the enum defined by us, please provide a way to use this in Power-Shell.
[namespace_name.test.sample1]) I think[namespace_name.test]::sample1