todictionary

    0熱度

    2回答

    第一次嘗試倉庫模式投字典,但卡住如何返回字典出的Dictionary.Where(條款) Public Function GetWhere(ByVal clause As System.Func(Of myObject, Boolean)) As IRepositoryRead(Of String, myObject) Implements IRepositoryRead(Of String, m

    6熱度

    1回答

    我只是工作的一個卡塔我的午餐和我來脫膠...... 這裏的我想要的步驟如下: 給定輸入串,由下式給出的先前步驟的字符串數組結果的新行字符 分割字符串,跳過第一元件陣列 給定來自先前生成的字符串的集合中的步驟,創建一個包含每2個e的集合lements 在這最後的陳述我的意思是,給定的4串這個集合: { "string1", "string2", "string3",

    0熱度

    1回答

    我想要查詢多個表並將查詢保存爲全局字典進行進一步處理。我已經嘗試了以下內容,但是取而代之,我在字典中獲取了類名。請看看並告訴我什麼是錯的,並在todictionary查詢更多的地方瞭解更多信息? public class linqtosql { public Dictionary<int, MC_VARIABLES> dctMC = new Dictionary<int, MC_VAR

    0熱度

    3回答

    我有一個名爲FrameList的自定義對象(PO​​NO)的數組,我可以orderBy和GroupBy進行排序和分組。但現在我想回到一個字典,而我得到的錯誤:(順便說一句,有沒有錯誤是我刪除了.ToDictionary()方法) Error 1 'System.Linq.IGrouping' does not contain a definition for 'type' and no exten

    0熱度

    2回答

    你能幫助我,如何將linq表達式轉換爲字典?以下代碼引發了我ArgumentException:具有相同鍵的項目已被添加。 IDictionary<string, string> listAllCoursesWithAreaAsDictionary = new Dictionary<string, string>(); var dictionary = (from b

    0熱度

    1回答

    我有以下3字典: Dictionary<string, int> A = new Dictionary<string, int>(); Dictionary<string, int> B = new Dictionary<string, int>(); Dictionary<int, Dictionary<int, int>> C = new Dictionary<int, Dictionar

    1熱度

    1回答

    我發現一種方法可以從一個輸入文件構建一個字典,但它不會考慮多個輸入文件。爲了讓我的下一步努力:我希望將額外的輸入文件添加到現有的散列中,並嘗試不同的代碼,這個代碼與我希望完成的代碼有點接近,但它仍然缺少語法。 foreach (string file in filePaths) { XDocument xdoc = XDocument.Load(file);

    0熱度

    1回答

    我試圖映射兩個列表來是什麼意思,但我正在逐漸ERR List<string> columnValue = new List<string>(); List<string> xpathValue = new List<string>(); var dic = columnValue.Zip(xpathValue, (k, v) => new { k, v}).Distinct().ToDict

    0熱度

    2回答

    我有這樣 Dictionary<MyStructure, MyObject> MYSTRUCTURE字典意味着公共結構... MyObject來指特定的實體... 然後通過我的事件通過我的字典作爲 IEnumerable<MyObject> col = this.GetCollection().Values; 然後,當我管理我的事件我使用IEnumerable,但我想將其轉換爲以前的字典來

    1熱度

    2回答

    我想一個數據錶轉換爲使用方法描述here一本字典,但我得到一個錯誤 無法隱式轉換類型 System.Collections.Generic.Dictionary>」來 'System.Collections.Generic.Dictionary``。 這link幫助,但只有一個值被拉入字典,而不是幾個這是我所需要的。 感謝您的任何幫助。 public class MCEAV { pub