I have very simple code as below
DateTime? assignmentDate = new DateTime?();
if (string.IsNullOrEmpty(objEntity_Leads.Lead_AssignedToTeleCaller))
assignmentDate = null;
else
assignmentDate = DateTime.ParseExact(objEntity_Leads.Lead_AssignedToTeleCaller, "dd/MM/yyyy", CultureInfo.InvariantCulture);
In my case value of objEntity_Leads.Lead_AssignedToTeleCaller
is 27/07/2015
but when I am inspecting these values it gives me above error.
I went through a solution as below
Tools -> Options -> Debugging and unchecked "Enable property eveluation and other function calls" but still getting same error.
What could be the solution?
A
could change the value of propertyB
.