P
Peter
Hi
in some example code I have seen delegates instantiated in the
following fashion:
public delegate string UserName(int id);
UserHelper helper = new UserHelper();
UserName un = new UserName(helper.GetUsername);
But I have found that the following also seems to work:
UserName un = helper.GetUsername;
Is this correct?
Thanks,
Peter
in some example code I have seen delegates instantiated in the
following fashion:
public delegate string UserName(int id);
UserHelper helper = new UserHelper();
UserName un = new UserName(helper.GetUsername);
But I have found that the following also seems to work:
UserName un = helper.GetUsername;
Is this correct?
Thanks,
Peter