Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerIsn't this the same question... Pin
leckey10-Sep-08 3:13
leckey10-Sep-08 3:13 
Questionprotection with rsa Pin
arminj10-Sep-08 1:00
arminj10-Sep-08 1:00 
AnswerRe: protection with rsa Pin
leppie10-Sep-08 1:13
leppie10-Sep-08 1:13 
GeneralRe: protection with rsa Pin
arminj11-Sep-08 10:51
arminj11-Sep-08 10:51 
Questionexcel open error "no overload for method Open takes 13 arguements" Pin
g_amol10-Sep-08 0:45
g_amol10-Sep-08 0:45 
AnswerRe: excel open error "no overload for method Open takes 13 arguements" Pin
Giorgi Dalakishvili10-Sep-08 0:54
mentorGiorgi Dalakishvili10-Sep-08 0:54 
AnswerRe: excel open error "no overload for method Open takes 13 arguements" Pin
leppie10-Sep-08 0:55
leppie10-Sep-08 0:55 
Questionwhat is method group? Pin
George_George10-Sep-08 0:42
George_George10-Sep-08 0:42 
Hello everyone,


After quite some time study on samples and C# Spec. I am confused about what is a method group? In my understanding method group is a set of methods which have the same signature, and not necessary to belong to a specific class. But I am not sure whether I am correct. Any comments or ideas?

Below is what I found in my study.

From ECMA-334: 14.1,

http://en.csharp-online.net/ECMA-334:_14.1_Expression_classifications[^]

A method group, which is a set of overloaded methods resulting from a member lookup (§14.3). A method group can have an associated instance expression. When an instance method is invoked, the result of evaluating the instance expression becomes the instance represented by this (§14.5.7). A method group can be used in an invocation-expression (§14.5.5), used in a delegate-creation-expression (§14.5.10.3), or implicitly converted to a compatible delegate type. In any other context, an expression classified as a method group causes a compile-time error.

From C# in Depth,

http://csharpindepth.com/ViewNote.aspx?NoteID=92[^]

"the feature allows you to specify an extension method as a method group using extension syntax"


thanks in advance,
George
AnswerRe: what is method group? Pin
g_amol10-Sep-08 0:53
g_amol10-Sep-08 0:53 
GeneralRe: what is method group? Pin
leppie10-Sep-08 0:57
leppie10-Sep-08 0:57 
GeneralRe: what is method group? Pin
George_George10-Sep-08 1:03
George_George10-Sep-08 1:03 
GeneralRe: what is method group? Pin
J4amieC10-Sep-08 1:20
J4amieC10-Sep-08 1:20 
GeneralRe: what is method group? Pin
George_George10-Sep-08 1:28
George_George10-Sep-08 1:28 
AnswerRe: what is method group? Pin
leppie10-Sep-08 0:53
leppie10-Sep-08 0:53 
GeneralRe: what is method group? Pin
George_George10-Sep-08 1:05
George_George10-Sep-08 1:05 
GeneralRe: what is method group? Pin
leppie10-Sep-08 1:09
leppie10-Sep-08 1:09 
GeneralRe: what is method group? Pin
George_George10-Sep-08 1:12
George_George10-Sep-08 1:12 
GeneralRe: what is method group? Pin
leppie10-Sep-08 1:16
leppie10-Sep-08 1:16 
GeneralRe: what is method group? Pin
George_George10-Sep-08 1:27
George_George10-Sep-08 1:27 
GeneralRe: what is method group? Pin
Daniel Grunwald10-Sep-08 1:53
Daniel Grunwald10-Sep-08 1:53 
GeneralRe: what is method group? Pin
George_George11-Sep-08 15:00
George_George11-Sep-08 15:00 
GeneralRe: what is method group? Pin
DaveyM6910-Sep-08 2:05
professionalDaveyM6910-Sep-08 2:05 
GeneralRe: what is method group? Pin
George_George11-Sep-08 15:01
George_George11-Sep-08 15:01 
GeneralRe: what is method group? Pin
Daniel Grunwald10-Sep-08 1:49
Daniel Grunwald10-Sep-08 1:49 
GeneralRe: what is method group? Pin
leppie10-Sep-08 1:56
leppie10-Sep-08 1:56 

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.