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

Submitter:  Thong Nguyen <tum>
Submitted:  Mon 03 May 2004 03:02:48 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

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

fixed in cvs

Thong Nguyen <tum>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-18 tum Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.12