Click here to Skip to main content
15,890,670 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Pros and Cons of using .NET Pin
Nick Blumhardt22-Jan-03 15:04
Nick Blumhardt22-Jan-03 15:04 
GeneralRe: Pros and Cons of using .NET Pin
Stephane Rodriguez.24-Jan-03 21:36
Stephane Rodriguez.24-Jan-03 21:36 
GeneralRe: Pros and Cons of using .NET Pin
TigerNinja_5-Feb-03 5:22
TigerNinja_5-Feb-03 5:22 
QuestionIStream implementation (COM) How to release base .NET Stream ? Pin
cornelos22-Jan-03 4:41
cornelos22-Jan-03 4:41 
GeneralPlease tell me they're joking... Pin
Richard Deeming22-Jan-03 0:50
mveRichard Deeming22-Jan-03 0:50 
GeneralRe: Please tell me they're joking... Pin
Sijin22-Jan-03 3:31
Sijin22-Jan-03 3:31 
GeneralRe: Please tell me they're joking... Pin
Richard Deeming22-Jan-03 3:40
mveRichard Deeming22-Jan-03 3:40 
GeneralOK, so I'm thick! Pin
Richard Deeming22-Jan-03 5:18
mveRichard Deeming22-Jan-03 5:18 
Apparently, the bug is with the static CreateDelegate method, which ignores the protection and visibility of the target. The fix doesn't require the method to be visible to the code which invokes the delegate, just the code that creates it.

This code will compile under v1, but not v1.1:
public delegate void TestDelegate();
 
class A
{
    protected void B()
    {
        Console.WriteLine("Hello from A.B!");
    }
}
 
class C
{
    static void Main()
    {
        A a = new A();
        Delegate del = Delegate.CreateDelegate(typeof(TestDelegate), a, "B");
        del.DynamicInvoke(new object[] {});
    }
}
Thanks to Emil for pointing this out on the GotDotNet forum:
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=66891&Page=1#66978[^]

Looks like I will be upgrading after all! Big Grin | :-D Blush | :O


"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Generalplz help urgent for setup !! Pin
drmzunlimited21-Jan-03 23:21
drmzunlimited21-Jan-03 23:21 
GeneralRe: plz help urgent for setup !! Pin
Vasudevan Deepak Kumar23-Jan-03 1:16
Vasudevan Deepak Kumar23-Jan-03 1:16 
GeneralHandling events raised by a COM component in a Windows Service developed in .NET Pin
Anonymous20-Jan-03 4:21
Anonymous20-Jan-03 4:21 
GeneralRe: Handling events raised by a COM component in a Windows Service developed in .NET Pin
Stephane Rodriguez.21-Jan-03 11:02
Stephane Rodriguez.21-Jan-03 11:02 
Generalwriting a game in .net Pin
joooooooe20-Jan-03 3:00
joooooooe20-Jan-03 3:00 
GeneralRe: writing a game in .net Pin
Tomas Petricek21-Jan-03 10:28
Tomas Petricek21-Jan-03 10:28 
GeneralComparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN Pin
Ingram Leedy18-Jan-03 12:15
Ingram Leedy18-Jan-03 12:15 
GeneralDesigners/CodeDOM Pin
CAR17-Jan-03 10:03
CAR17-Jan-03 10:03 
GeneralDeploying a .NET app Pin
antoine@orchus-tech17-Jan-03 3:59
antoine@orchus-tech17-Jan-03 3:59 
GeneralRe: Deploying a .NET app Pin
Joel Matthias17-Jan-03 5:16
Joel Matthias17-Jan-03 5:16 
QuestionBug in Bitmap class? Pin
Stan Shannon17-Jan-03 2:29
Stan Shannon17-Jan-03 2:29 
AnswerRe: Bug in Bitmap class? Pin
leppie17-Jan-03 7:23
leppie17-Jan-03 7:23 
GeneralRe: Bug in Bitmap class? Pin
Stan Shannon17-Jan-03 9:03
Stan Shannon17-Jan-03 9:03 
GeneralBidirectional TCP Genuine Channels are Available. Pin
Bill200217-Jan-03 0:12
Bill200217-Jan-03 0:12 
GeneralAccessing/remoting a network PC Pin
vlusardi15-Jan-03 13:38
vlusardi15-Jan-03 13:38 
GeneralA layout question Pin
lemoncoke15-Jan-03 9:12
lemoncoke15-Jan-03 9:12 
GeneralCompiling to native insted to MSIL Pin
Amir Harel14-Jan-03 19:35
Amir Harel14-Jan-03 19:35 

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.