public static int MassAnalyzerEnumToInt(MassAnalyzerEnum e) { switch (e) { case MassAnalyzerEnum.Ftms: return(0); case MassAnalyzerEnum.Itms: return(1); case MassAnalyzerEnum.Tof: return(2); case MassAnalyzerEnum.Unknown: return(3); default: throw new Exception("Never get here."); } }
public Ms2Key(MassAnalyzerEnum massAnalyzer, FragmentationTypeEnum fragmentationType, SignalType signalType) { this.massAnalyzer = massAnalyzer; this.fragmentationType = fragmentationType; this.signalType = signalType; }