public static Icon GetIcon(IconSet pIconSet, string pCustomIconPath, string pState) { string key = pIconSet.ToString() + "#" + pCustomIconPath + "#" + pState; Icon icon = null; if (mIconCache.ContainsKey(key)) { icon = mIconCache[key]; } else { icon = GetIcon_Interal(pIconSet, pCustomIconPath, pState); mIconCache[key] = icon; } return icon; }