Red Gate forums :: View topic - Decompie event
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7 EAP
.NET Reflector 7 EAP forum

Decompie event

Search in .NET Reflector 7 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
couldnotforget



Joined: 19 Dec 2010
Posts: 12

PostPosted: Mon Feb 28, 2011 10:34 am    Post subject: Decompie event Reply with quote

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
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Mon Feb 28, 2011 1:36 pm    Post subject: Reply with quote

I've logged that as RP-1134
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group