public void Set_Comma_Type(string new_Comma_Type) { Comma_Type = new_Comma_Type; foreach (string comma in Commas_Type_Array) { if (comma == Comma_Type) { return; } } Commas_Type_Array = Commas_Type_Array.Concat(new string[] { Comma_Type }).ToArray(); }
public void Add_New_Comma_Type(string[] new_Comma_Type) { List <string> New_Comma_Type_List = new List <string>(); foreach (string comma_Type in new_Comma_Type) { if (Is_New_Comma_Type(comma_Type)) { New_Comma_Type_List.Add(comma_Type); } } Commas_Type_Array = Commas_Type_Array.Concat(New_Comma_Type_List).ToArray(); }