Quickstarts.HistoricalEvents.Server.ReportGenerator.GetAreas C# (CSharp) Method

GetAreas() public method

public GetAreas ( ) : string[]
return string[]
        public string[] GetAreas()
        {
            List<string> area = new List<string>();

            for (int ii = 0; ii < s_WellNames.Length; ii++)
            {
                int index = s_WellNames[ii].LastIndexOf('/');

                if (index >= 0)
                {
                    string areaName = s_WellNames[ii].Substring(0, index);
                    
                    if (!area.Contains(areaName))
                    {
                        area.Add(areaName);
                    }
                }
            }

            return area.ToArray();
        }