Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

implicit function evaluation is turned off by user

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?

like image 803
Imad Avatar asked Oct 16 '15 07:10

Imad


2 Answers

To turn automatic property evaluation on or off

  1. On the Tools menu, click Options.
  2. In the Options dialog box, open the Debugging node, and click General.
  3. If the Debugging node does not appear, click Show all settings.
  4. Select or clear the Enable property evaluation and other implicit function calls check box, and then click OK.
like image 62
Dhiraj Jain Avatar answered Sep 20 '22 14:09

Dhiraj Jain


To disable "Implicit function evaluation is turned off by user", check this setting:

enter image description here

like image 44
Drew Noakes Avatar answered Sep 23 '22 14:09

Drew Noakes