CSMSL.Proteomics.FragmentTypesExtension.GetIonCap C# (CSharp) Method

GetIonCap() public static method

public static GetIonCap ( this fragmentType ) : ChemicalFormula
fragmentType this
return ChemicalFormula
        public static ChemicalFormula GetIonCap(this FragmentTypes fragmentType)
        {
            if (fragmentType == FragmentTypes.None || (fragmentType & (fragmentType - 1)) != FragmentTypes.None)
            {
                throw new ArgumentException("Fragment Type must be a single value to determine the ion cap", "fragmentType");
            }
            return FragmentIonCaps[fragmentType];
        }