I have a question about following variable declaration. What does that mean?
List<string>.Enumerator enumerator
List is a generic type, where string serves as a type parameter.
How to interpret the .Enumerator after that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
List<T>has a nested class in it, calledEnumerator.So the type definition of that is
List<T>.Enumerator(and in your caseTis astring).P.S.
Actually,
List<T>.Enumeratoris astruct, not aclass, anyway the type definition would be the same.In fact for all nested types it’s always
OuterType.NestedType