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.
Afficher le fichier Open project: dbaileychess/CSMSL Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

this() public méthode

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
Résultat Isotope