C# Class CSMSL.Chemistry.Element

Represents a single chemical element. Elements comprises of multiple isotopes, with the element mass being a weighted average of all the isotopes atomic masses weighted by their natural relative abundance.
Show file Open project: dbaileychess/CSMSL Class Usage Examples

Public Methods

Method Description
ToString ( ) : string

Returns a textual representation of this element in the following format: Hydrogen (H) Helium (He)

this ( int atomicNumber ) : Isotope

Gets an isotope of this element based on its atomic number

Private Methods

Method Description
AddIsotope ( int atomicNumber, double atomicMass, float abundance ) : Isotope

Add an isotope to this element

Element ( string name, string symbol, int atomicNumber, int valenceElectrons ) : System.Collections.Generic

Create a new element

Method Details

ToString() public method

Returns a textual representation of this element in the following format: Hydrogen (H) Helium (He)
public ToString ( ) : string
return string

this() public method

Gets an isotope of this element based on its atomic number
public this ( int atomicNumber ) : Isotope
atomicNumber int The atomic number of the isotope to get
return Isotope