public void AddSynonym(ChildEntity synonym) { ChildEntity[] arr = new ChildEntity[synonyms.Length + 1]; for (var i = 0; i < synonyms.Length; i++) { arr[i] = synonyms[i]; } arr[arr.Length - 1] = synonym; synonyms = arr; }
public static void AddSynonym(int tagIndex, ChildEntity synonym) { tags[tagIndex].AddSynonym(synonym); }