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.ToString(reply);
//Console.WriteLine(reply.ToString());
Console.WriteLine(x);
Console.ReadLine();
class Class1
{
public enum EQReply}
{[Description("APIDRIVER")]}
ApiDriver,
[Description("MSGCOUNT")]
MessageCount,
AlanPosted Aug 29, 2007, 8:52 AM
Although I haven't downloaded the code for the article, Jan, I would guess that the generic StringEnumerator class which the guy is using is a custom class he's written himself.
AFAIK the System.Collections.Specialized.StringEnumerator class is the only one of that name in the .NET framework and is non-generic.
Jan MontanoPosted Aug 29, 2007, 9:33 PM
Arigato Gozaimasu Alan-sensei! =)