public Thread(ThreadCallbackFunction threadCallbackFunction, object userDefinedObject, eThreadStartOptions threadStartOption)
 {
     m_cThread = _ciThreadWithOption.Invoke(new object[] { ConvertToCrestronThreadCallbackFunction(threadCallbackFunction), userDefinedObject, ConvertToCrestronThreadStartOption(threadStartOption) });
 }
 private static object ConvertToCrestronThreadStartOption(eThreadStartOptions startOption)
 {
     return(Enum.ToObject(_ctypeThreadStartOptions, (int)startOption));
 }