コード例 #1
0
        public static AssessmentRunStringIndex[] createStringIndexArrayFromDictionary(
            Dictionary <String, UInt32> dNewStringIndex)
        {
            var lariAssessmentRunStringIndex = new List <AssessmentRunStringIndex>();

            foreach (String sKey in dNewStringIndex.Keys)
            {
                var ariAssessmentRunStringIndex = new AssessmentRunStringIndex
                {
                    value = sKey,
                    id    = dNewStringIndex[sKey]
                };
                lariAssessmentRunStringIndex.Add(ariAssessmentRunStringIndex);
            }
            return(lariAssessmentRunStringIndex.ToArray());
        }
コード例 #2
0
 public static AssessmentRunStringIndex[] createStringIndexArrayFromDictionary(
     Dictionary<String, UInt32> dNewStringIndex)
 {
     var lariAssessmentRunStringIndex = new List<AssessmentRunStringIndex>();
     foreach (String sKey in dNewStringIndex.Keys)
     {
         var ariAssessmentRunStringIndex = new AssessmentRunStringIndex
                                               {
                                                   value = sKey,
                                                   id = dNewStringIndex[sKey]
                                               };
         lariAssessmentRunStringIndex.Add(ariAssessmentRunStringIndex);
     }            
     return lariAssessmentRunStringIndex.ToArray();
 }