Esempio n. 1
0
 public SearchResult(double bandGap, string compound, double eGapFit, EGapType eGapType, string species)
 {
     _bandGap  = bandGap;
     _compound = compound;
     _eGapFit  = eGapFit;
     _eGapType = eGapType;
     _species  = species;
 }
Esempio n. 2
0
        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);
        }