public Dictionary <string, int> getExcludedInterfaces(NET_FW_PROFILE_TYPE2_ fwProfile) { var excluded = new Dictionary <string, int>(); var intex = fw.get_ExcludedInterfaces(fwProfile); if (intex != null) { foreach (string ex in intex) { excluded.Add(ex, 0); } } return(excluded); }