CSMSL.Chemistry.PeriodicTable.GetElement C# (CSharp) Метод

GetElement() публичный статический Метод

public static GetElement ( string element ) : Element
element string
Результат Element
        public static Element GetElement(string element)
        {
            return _elements[element];
        }

Usage Example

Пример #1
0
 /// <summary>
 /// Add the principal isotope of the element to this chemical formula
 /// given its chemical symbol
 /// </summary>
 /// <param name="symbol">The chemical symbol of the element to add</param>
 /// <param name="count">The number of the element to add</param>
 public void Add(string symbol, int count)
 {
     try
     {
         Isotope isotope = PeriodicTable.GetElement(symbol).PrincipalIsotope;
         Add(isotope, count);
     }
     catch (KeyNotFoundException e)
     {
         throw new KeyNotFoundException(string.Format("The element symbol '{0}' is not found in the periodic table", symbol), e);
     }
 }
All Usage Examples Of CSMSL.Chemistry.PeriodicTable::GetElement