c# - WPF Error in routine -


i had subroutine code (see below) working fine until hour ago while testing.

notifyofpropertychange(() => testresults); triggers error:

"cannot convert lambda expression type 'string' because not delegate type"

i have googled around, , solutions suggest adding "using system.linq". have done "using system.data.entity". both of these greyed out in visual studio suggesting not used, , error still persists.

i'm new using wpf linked subroutines, i'm not entirely sure doing, said been working fine, , have similar program there no error. both have same references , usings, , other program doesn't have "using system.linq"

i'm sure stupid i'm missing. thanks

  public string testresults     {         { return _testresults; }          set         {             _testresults = value;              notifyofpropertychange(() => testresults);         }     } 

looks implement interface inotifypropertychanged , should fire propertychanged event providing name of property. guess can call notifyofpropertychange("testresults") , work.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -