Is there a way to print all the enums in C# class library or namespace? I want the name to be printed with its values.
For example if I have the namespace as below:
namespace MyCompany.SystemLib
{
    public enum ItemStatus
    {
        None = 0,
        Active = 1,
        Inactive = 2    
    }
    public enum MyEnum
    {
        EnumVal1 = 1,
        EnumVal2 = 2,
        EnumVal3 = 3,
    }   
}
I would like to print them delimited as below (to a textfile) Bullet given for clarity here not needed in output.
- ItemStatus,None=0,Active=1,Inactive=1
- MyEnum,EnumVal1=1,EnumVal2=2,EnumVal3
I don't know where to start. Any help is appreciated.
 
     
     
     
    