public ACNode[] ProduceACNodes() { List <ACNode> nodes = new List <ACNode> { Capacity = Enums.Count + Constants.Count + Functions.Count }; nodes.AddRange(ACNode.ConvertFromStringArray(FunctionStrings, true, "▲ ")); nodes.AddRange(ACNode.ConvertFromStringArray(ConstantsStrings, false, "• ")); nodes.Sort((a, b) => string.Compare(a.EntryName, b.EntryName)); return(nodes.ToArray()); }
public ACNode[] ProduceACNodes() { var nodes = new List <ACNode>(); nodes.Capacity = Enums.Count + Structs.Count + Constants.Count + Functions.Count + EnumStructs.Count; nodes.AddRange(ACNode.ConvertFromStringArray(FunctionStrings, true, "▲ ")); nodes.AddRange(ACNode.ConvertFromStringArray(TypeStrings, false, "♦ ")); nodes.AddRange(ACNode.ConvertFromStringArray(ConstantsStrings, false, "• ")); nodes.AddRange(ACNode.ConvertFromStringArray(MethodmapsStrings, false, "↨ ")); nodes.AddRange(ACNode.ConvertFromStringArray(EnumStructStrings, false, "↩ ")); //nodes = nodes.Distinct(new ACNodeEqualityComparer()).ToList(); Methodmaps and Functions can and will be the same. nodes.Sort((a, b) => string.CompareOrdinal(a.EntryName, b.EntryName)); return(nodes.ToArray()); }