public SearchResult(double bandGap, string compound, double eGapFit, EGapType eGapType, string species) { _bandGap = bandGap; _compound = compound; _eGapFit = eGapFit; _eGapType = eGapType; _species = species; }
public static EGapType ToGapType(string value) { EGapType toGapType = EGapType.Unknown; if (String.IsNullOrEmpty(value) == false) { object parsed = null; Enum.TryParse(typeof(EGapType), value, out parsed); if (parsed is EGapType) { toGapType = (EGapType)(parsed); } } return(toGapType); }