dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #8773] Delegate.DynamicInvoke doesn't work with


From: Thong Nguyen
Subject: [Pnet-developers] [bugs #8773] Delegate.DynamicInvoke doesn't work with ref/out parameters
Date: Sun, 02 May 2004 23:02:49 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; .NET CLR 1.1.4322)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #8773] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8773>
Project: DotGNU Portable.NET
Submitted by: Thong Nguyen
On: Mon 05/03/04 at 03:02

Category:  None
Severity:  1 - None
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  Delegate.DynamicInvoke doesn't work with ref/out parameters

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]);
        }
}











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8773>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]