示例#1
0
        public ISNode[] ProduceISNodes()
        {
            List <ISNode> nodes = new List <ISNode>();

            try
            {
                nodes.AddRange(ISNode.ConvertFromStringArray(MethodsStrings, true, "▲ "));
                nodes.AddRange(ISNode.ConvertFromStringArray(FieldStrings, false, "• "));
                nodes = nodes.Distinct(new ISNodeEqualityComparer()).ToList();
                nodes.Sort((a, b) => { return(string.Compare(a.EntryName, b.EntryName)); });
            } catch (Exception) { }
            return(nodes.ToArray());
        }
示例#2
0
        public ISNode[] ProduceISNodes()
        {
            var nodes = new List <ISNode>();

            nodes.AddRange(ISNode.ConvertFromStringArray(MethodsStrings, true, "▲ "));
            nodes.AddRange(ISNode.ConvertFromStringArray(StructMethodStrings, true, "▲ "));

            nodes.AddRange(ISNode.ConvertFromStringArray(FieldStrings, false, "• "));
            nodes.AddRange(ISNode.ConvertFromStringArray(StructFieldStrings, false, "• "));

            // nodes.AddRange(ISNode.ConvertFromStringArray(VariableStrings, false, "v "));

            nodes = nodes.Distinct(new ISNodeEqualityComparer()).ToList();
            nodes.Sort((a, b) => string.CompareOrdinal(a.EntryName, b.EntryName));

            return(nodes.ToArray());
        }