Click here to Skip to main content
15,898,926 members
Home / Discussions / C#
   

C#

 
AnswerRe: Appdomain Pin
Rob Philpott31-Mar-11 1:31
Rob Philpott31-Mar-11 1:31 
QuestionProtecting from plugin crashes Pin
Benny_Lava30-Mar-11 22:37
Benny_Lava30-Mar-11 22:37 
AnswerRe: Protecting from plugin crashes Pin
BobJanova30-Mar-11 23:18
BobJanova30-Mar-11 23:18 
GeneralRe: Protecting from plugin crashes Pin
Benny_Lava31-Mar-11 1:13
Benny_Lava31-Mar-11 1:13 
AnswerRe: Protecting from plugin crashes Pin
Rob Philpott31-Mar-11 1:34
Rob Philpott31-Mar-11 1:34 
QuestionBlocking threads - growing memory Pin
GDavy30-Mar-11 20:48
GDavy30-Mar-11 20:48 
AnswerRe: Blocking threads - growing memory Pin
Eddy Vluggen31-Mar-11 0:38
professionalEddy Vluggen31-Mar-11 0:38 
QuestionCast Action<T> to Action<object> [modified] Pin
Adriaan Davel30-Mar-11 20:36
Adriaan Davel30-Mar-11 20:36 
After much painfull and brain numbing reading I still don't understand why its not possible to cast between Action<T> and Action<object>, can anyone please explain this in small words (I currently have the brain of a 5 year old).

There was a poem written along time ago by a person dying with lots of pain, he called it 'Brother Pain', I'm about to write a poem called 'Brother Cannot implicitly convert type 'System.Action<T>' to 'System.Action<object>''

An example:
public class Base
{
   public Func<object> OnComplete {get;set;}
   public Base(Func<object> onComplete)
   {
      OnComplete = onComplete;
   }
}
public class GenericBase<T> : Base
{
   public GenericBase(Func<T> onComplete) : base(onComplete) //Error
   {
      OnComplete = onComplete; //Error
   }
}

____________________________________________________________
Be brave little warrior, be VERY brave
modified on Thursday, March 31, 2011 3:22 AM

AnswerRe: Cast Action to Action Pin
Groulien30-Mar-11 22:01
Groulien30-Mar-11 22:01 
GeneralRe: Cast Action to Action Pin
Adriaan Davel30-Mar-11 22:37
Adriaan Davel30-Mar-11 22:37 
AnswerRe: Cast Action to Action Pin
Eddy Vluggen30-Mar-11 22:06
professionalEddy Vluggen30-Mar-11 22:06 
GeneralRe: Cast Action to Action Pin
Adriaan Davel30-Mar-11 22:32
Adriaan Davel30-Mar-11 22:32 
GeneralRe: Cast Action to Action Pin
Wayne Gaylard30-Mar-11 22:37
professionalWayne Gaylard30-Mar-11 22:37 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen30-Mar-11 22:44
professionalEddy Vluggen30-Mar-11 22:44 
GeneralRe: Cast Action to Action Pin
Adriaan Davel30-Mar-11 22:49
Adriaan Davel30-Mar-11 22:49 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen30-Mar-11 22:55
professionalEddy Vluggen30-Mar-11 22:55 
GeneralRe: Cast Action to Action Pin
Adriaan Davel30-Mar-11 23:02
Adriaan Davel30-Mar-11 23:02 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen30-Mar-11 23:19
professionalEddy Vluggen30-Mar-11 23:19 
GeneralRe: Cast Action to Action Pin
PIEBALDconsult31-Mar-11 2:57
mvePIEBALDconsult31-Mar-11 2:57 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen31-Mar-11 3:05
professionalEddy Vluggen31-Mar-11 3:05 
GeneralRe: Cast Action to Action Pin
J4amieC31-Mar-11 3:38
J4amieC31-Mar-11 3:38 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen31-Mar-11 3:45
professionalEddy Vluggen31-Mar-11 3:45 
GeneralRe: Cast Action to Action Pin
J4amieC31-Mar-11 5:46
J4amieC31-Mar-11 5:46 
GeneralRe: Cast Action to Action Pin
Eddy Vluggen31-Mar-11 7:00
professionalEddy Vluggen31-Mar-11 7:00 
GeneralRe: Cast Action to Action Pin
PIEBALDconsult31-Mar-11 15:00
mvePIEBALDconsult31-Mar-11 15:00 

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.