Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as text by Exoide ( 17 years ago )
delegate int foo();

int delegateFoo()
{
   return 1;
}

static void Main(string[] args)
{
  const foo[] f = { delegateFoo };
}

/*
  Here is the error I got

  An object reference is required for the non-static field, method, or property 'delegateFoo()'
*/

 

Revise this Paste

Your Name: Code Language: