private void getGenderAndSetSPUser() { if (checkIfValueHasBeenSet(gender)) { SPUser.SetGender((SPUserGender)Enum.Parse(typeof(SPUserGender), gender)); } }