I have a object that has a boolean field called NameIndicator (External contract one). In my code, I made the my boolean "IsIndicated" as nullable.
How do I check for null and assign value only if non null?
I currently get compile time error with the below code as obvious its assining nullable to non nullable field
personDetails.Name= new Name_Format()
{
NameSpecified = true,
NameIndicator = contract.IsIndicated
};