public SampleRate.RateType rateType() { SampleRate.RateType ret = (SampleRate.RateType)msclPINVOKE.SampleRate_rateType(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) { throw msclPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static int ToXdr(this SampleRate.RateType type) { switch (type) { case SampleRate.RateType.Hertz: return(1); case SampleRate.RateType.Seconds: return(0); } throw new Exception("invalid enum type"); }