public static PcsFileInfo Parse(String section, PcsFileInfo defaultValue) { if (String.IsNullOrEmpty(section)) { return(defaultValue); } foreach (PcsFileInfo item in PcsFileInfo.DPcsFileInfos.Values) { if (item.varSection.Equals(section, StringComparison.OrdinalIgnoreCase)) { return(item); } } return(defaultValue); }
public static PcsFileInfo Parse(String section) { return(PcsFileInfo.Parse(section, PcsFileInfo.DPcsFileInfos[FileType.Other])); }