Hi everyone,
I'm following this article about
StringEnumerator but I'm encountering a "The non-generic type 'System.Collections.Specialized.StringEnumerator' cannot be used with type arguments" error on line 2 of Program.Main().
Here's what I have so far.
class Program
{
static void Main(string[] args)
{
Class1.EQReply reply = Class1.EQReply.MessageCount;
string x = StringEnumerator<Class1.EQReply>.ToString(reply);
//Console.WriteLine(reply.ToString());
Console.WriteLine(x);
Console.ReadLine();
}
}
class Class1
{
public enum EQReply
{
[Description("APIDRIVER")]
ApiDriver,
[Description("MSGCOUNT")]
MessageCount,
}
}