IEnumerable<string> in VS 2003
-
I'm trying to run an example that I found in a book that is for VS 2005. They use "using System.Collections.Generic" (which is not there in VS 2003) and also they use IEnumerable to provide foreach support to a class like this: public class ClassName : IEnumerable and then public IEnumerator GetEnumerator() { foeach(){ } } I'm not able to tack on the to either IEnumerable or IEnumerator in VS 2003 (to show that I'm returning a string from the foreach function) and I'm wondering if I'm missing including something or if this just cannot be done in 2003. Thanks "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."
-
I'm trying to run an example that I found in a book that is for VS 2005. They use "using System.Collections.Generic" (which is not there in VS 2003) and also they use IEnumerable to provide foreach support to a class like this: public class ClassName : IEnumerable and then public IEnumerator GetEnumerator() { foeach(){ } } I'm not able to tack on the to either IEnumerable or IEnumerator in VS 2003 (to show that I'm returning a string from the foreach function) and I'm wondering if I'm missing including something or if this just cannot be done in 2003. Thanks "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."
Generics are not available in .NET 1.1, so yes, you can't do it from within VS .NET 2003. You can try one of the express editions that are available for free, over here(http://lab.msdn.microsoft.com/express/vcsharp/default.aspx[^]). Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
Generics are not available in .NET 1.1, so yes, you can't do it from within VS .NET 2003. You can try one of the express editions that are available for free, over here(http://lab.msdn.microsoft.com/express/vcsharp/default.aspx[^]). Regards Senthil _____________________________ My Blog | My Articles | WinMacro