المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : variable names



C# Programming
12-11-2009, 02:02 PM
Hi,

I want to create an Annotation object inside a foreach loop with different name for it.

Example

foreach(...)
{
Annotation anno_1 = charts[0].CreateAnnotation();
}

How can i create the name of the Annotation foreach item..

example anno_1, anno_2, anno_3..

thanks