如何计算(?)带有字母的索引元素

How to numerate(?) an indexed element with alphabet letters

我有以下代码,我想命名路标的索引元素 [NodeIndex] 就像 NodeIndex==0 一样,然后将其命名为 "starting node : A" 如果 NodeIndex ==1,则 "B",NodeIndex==2 为 "C",依此类推。我不知道怎么做。

string waypointString = "38.481713 , 27.088842 ; 38.477967 , 27.095194 ; 38.468979 , 27.109935 ; 38.473381 , 27.112424 ; 38.459930 , 27.090800 ;38.469622 , 27.075265 ; 38.455494 , 27.119999 ; 38.451671 , 27.114656 ; 38.469483 , 27.134998 ; 38.468074 , 27.085409";

        string[] Nodes = waypointString.Split(';');
        DevExpress.XtraMap.GeoPoint[] waypoints = new DevExpress.XtraMap.GeoPoint[Nodes.Length];

        int NodeIndex = -1;

        foreach (string Node in Nodes)
        {

            string[] Coordinates = Node.Split(',');
            NodeIndex++;
            waypoints[NodeIndex] = new DevExpress.XtraMap.GeoPoint();
            waypoints[NodeIndex].Latitude = double.Parse(Coordinates[0].Trim());
            waypoints[NodeIndex].Longitude = double.Parse(Coordinates[1].Trim());

        }

如有任何帮助,我们将不胜感激。

感谢@EZI,使用Dictionary<string,GeoPoint>

解决了问题