我道歉,如果這是一個愚蠢的問題,但聽我說: Dictionary<string, string> genericDict = new Dictionary<string, string>;
genericDict.Add("blah", "bloop");
// Use the copy constructor to create a copy of this dictionary
retu
我想要做的是有一個項目明智的靜態字典,所以我可以從我的代碼中的任何地方訪問單個列表。 到現在爲止,我想出了這個解決方案,一個公共靜態類的公共屬性: public static class Common
{
public static StringDictionary Domains
{
get
{
StringDictionary lis
我想創建一個StringDictionary類型的新屬性,但是當我使用像stringdictionary變量的屬性時,我收到一個錯誤。 目標是不使用變量,我需要爲此使用一個屬性。在幕後,我將字符串值保存爲全局用戶標識索引集合。下面是創建屬性,並嘗試獲取和設置代碼: Public Property MaxLenDict As StringDictionary()
Get
Ret