コード例 #1
0
        public override IDictionary <int, object> GetValues(IEnumerable <int> ids)
        {
            IDictionary <int, object> retVal = DictionaryLibrary.NewDictionary <int, object>(100);

            foreach (int id in ids)
            {
                retVal[id] = GetValue(id);
            }
            return(retVal);
        }
コード例 #2
0
        public override IDictionary <int, object> GetValues()
        {
            IDictionary <int, object> retVal = DictionaryLibrary.NewDictionary <int, object>(Count);

            for (int i = 0; i < Count; ++i)
            {
                retVal[i] = GetValue(i);
            }
            return(retVal);
        }