using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CobXmlSupport { public class IndStatus { private List presentInds = null; private int returns = 0; private string[] newInds=null; public IndStatus() { presentInds = new List(); } public void handleStatus(string[] new_Inds) { List news = new List(); news.AddRange(new_Inds); foreach (string tmpStr in presentInds) { if (news.Contains(tmpStr)) { } else { returns += 1; } } List addedStrs = new List(); foreach (string tmpInStr in new_Inds) { if (presentInds.Contains(tmpInStr)){} else { presentInds.Add(tmpInStr); addedStrs.Add(tmpInStr); } } // Utveckling pågår ! } } }