Decompie event

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Clive Tong, nick.maidment

Decompie event

Postby couldnotforget » Mon Feb 28, 2011 10:34 am

Source Code:

public event MethodInvoker MyEvent;


Decompile Code:

public event MethodInvoker MyEvent
{
add
{
MethodInvoker invoker2;
MethodInvoker myEvent = this.MyEvent;
do
{
invoker2 = myEvent;
MethodInvoker invoker3 = (MethodInvoker) Delegate.Combine(invoker2, value);
myEvent = Interlocked.CompareExchange<MethodInvoker>(ref this.MyEvent, invoker3, invoker2);
}
while (myEvent != invoker2);
}
remove
{
MethodInvoker invoker2;
MethodInvoker myEvent = this.MyEvent;
do
{
invoker2 = myEvent;
MethodInvoker invoker3 = (MethodInvoker) Delegate.Remove(invoker2, value);
myEvent = Interlocked.CompareExchange<MethodInvoker>(ref this.MyEvent, invoker3, invoker2);
}
while (myEvent != invoker2);
}
}


There are so many errors
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby Clive Tong » Mon Feb 28, 2011 1:36 pm

I've logged that as RP-1134
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm


Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 0 guests