bugDotGNU Portable.NET - Bugs: bug #8773, Delegate.DynamicInvoke doesn't...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8773: Delegate.DynamicInvoke doesn't work with ref/out parameters

Submitted by:  Thong Nguyen <tum>
Submitted on:  Mon 03 May 2004 03:02:48 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 18 May 2004 02:41:56 AM UTC, comment #1:

fixed in cvs

Thong Nguyen <tum>
Project Member
Mon 03 May 2004 03:02:48 AM UTC, original submission:

The following program outputs "10" on MS.NET but throws an ArgumentException on pnet.

using System;

public class Test
{
delegate void D(ref int x);

public static void Foo(ref int x)
{
x = 10;
}

public static void Main()
{
D d = new D(Foo);
Object[] arr = new Object[1];

d.DynamicInvoke(arr);

Console.WriteLine(arr[0]);
}
}

Thong Nguyen <tum>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Tue 18 May 2004 02:41:56 AM UTCtumOpen/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1