private void SetBool(bool prop, string boolVal) { var _isTrue = false; bool.TryParse(boolVal, out _isTrue); prop = _isTrue; }