コード例 #1
0
        public static string DoTheComparison(GenericData result)
        {
            Dictionary <string, SelfComparingGeneric> data = result.GetDictionary();
            IEnumerator iter         = data.GetEnumerator();
            string      resultString = "";
            int         i            = 0;

            while (iter.MoveNext())
            {
                KeyValuePair <string, SelfComparingGeneric> currentRow = (KeyValuePair <string, SelfComparingGeneric>)iter.Current;
                SelfComparingGeneric current = (SelfComparingGeneric)currentRow.Value;
                resultString += current.Compare() + "<br>" + i + "<br>";
                i++;
            }
            return(resultString + "Working");
        }