Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 5:42
mveOriginalGriff5-Apr-14 5:42 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 5:47
ismail205-Apr-14 5:47 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 6:12
mveOriginalGriff5-Apr-14 6:12 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 6:12
ismail205-Apr-14 6:12 
QuestionAnonymous or static or lambda methods?? Pin
Sea_Sharp4-Apr-14 8:56
Sea_Sharp4-Apr-14 8:56 
AnswerRe: Anonymous or static or lambda methods?? Pin
Mycroft Holmes4-Apr-14 14:20
professionalMycroft Holmes4-Apr-14 14:20 
AnswerRe: Anonymous or static or lambda methods?? Pin
OriginalGriff4-Apr-14 20:55
mveOriginalGriff4-Apr-14 20:55 
GeneralRe: Anonymous or static or lambda methods?? Pin
Richard Deeming7-Apr-14 1:57
mveRichard Deeming7-Apr-14 1:57 
OriginalGriff wrote:
Anonymous and Lambda methods cannot be static: they are always instance related.
Are you sure?

As I understand it, there are three possibilities:
  • If the method captures local variables, it will be compiled as an instance method on a nested private class with fields to represent all of the captured variables;
  • Otherwise, if the method references instance fields, properties or methods of the current instance, it will be created as a private instance method;
  • Finally, if it only references static fields, properties or methods, or doesn't reference anything beyond its parameters, it will be created as a private static method;




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Anonymous or static or lambda methods?? Pin
Sea_Sharp7-Apr-14 2:57
Sea_Sharp7-Apr-14 2:57 
GeneralRe: Anonymous or static or lambda methods?? Pin
OriginalGriff7-Apr-14 5:33
mveOriginalGriff7-Apr-14 5:33 
GeneralRe: Anonymous or static or lambda methods?? Pin
Sea_Sharp7-Apr-14 8:34
Sea_Sharp7-Apr-14 8:34 
GeneralRe: Anonymous or static or lambda methods?? Pin
OriginalGriff7-Apr-14 8:52
mveOriginalGriff7-Apr-14 8:52 
QuestionRetrieving a List of Contacts from Exchange Pin
Member 103181264-Apr-14 1:05
Member 103181264-Apr-14 1:05 
AnswerRe: Retrieving a List of Contacts from Exchange Pin
OriginalGriff4-Apr-14 2:34
mveOriginalGriff4-Apr-14 2:34 
QuestionLinkedin import to C# WPF desktop application? Pin
Mandarinna3-Apr-14 23:42
Mandarinna3-Apr-14 23:42 
AnswerRe: Linkedin import to C# WPF desktop application? Pin
Richard MacCutchan3-Apr-14 23:58
mveRichard MacCutchan3-Apr-14 23:58 
QuestionTCPClient across AppDomains Pin
Carlos Sousa3-Apr-14 23:38
Carlos Sousa3-Apr-14 23:38 
AnswerRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 4:27
Rob Philpott4-Apr-14 4:27 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 5:15
Carlos Sousa4-Apr-14 5:15 
GeneralRe: TCPClient across AppDomains Pin
Rob Philpott4-Apr-14 6:03
Rob Philpott4-Apr-14 6:03 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:37
Carlos Sousa4-Apr-14 11:37 
AnswerRe: TCPClient across AppDomains Pin
jschell4-Apr-14 8:15
jschell4-Apr-14 8:15 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa4-Apr-14 11:45
Carlos Sousa4-Apr-14 11:45 
GeneralRe: TCPClient across AppDomains Pin
jschell7-Apr-14 9:23
jschell7-Apr-14 9:23 
GeneralRe: TCPClient across AppDomains Pin
Carlos Sousa8-Apr-14 5:33
Carlos Sousa8-Apr-14 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.