wpf - Why use Func<> in controller constructor parameters in MVVM applications -


i'm seeing, more , more code code below in mvvm application (wpf , prism). controllers have following code fragments:

public class dispenseoptioncontroller : idispenseoptioncontroller {     protected readonly func<ipharmacycdmservicesimpleclient> cdmclient;      protected readonly func<ipatientservicesimpleclient> patientclient;      public dispenseoptioncontroller(func<ipharmacycdmservicesimpleclient> cdmclient, func<ipatientservicesimpleclient> patientclient)     {         cdmclient = cdmclient;         patientclient = patientclient;     }... 

i'm trying understand role func<> plays here. seems delegate used parameters constructor. can explain me why use func<> in particular case? , can func<> replaced else?

a func<> nothing encapsulation of method 1 or more parameter , returns value of type specified tresult parameter.

you see use cases here


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -