public string GetCommand(string device, string action) { if (IsDead()) { throw new Exceptions.SimObjectPointerInvalidException(); } return(Marshal.PtrToStringAnsi(InternalUnsafeMethods.ActionMapGetCommand(ObjectPtr->ObjPtr, device, action))); }