зеркало из https://github.com/mono/mail-archives.git
140 строки
4.5 KiB
HTML
140 строки
4.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 480819] New: delegate ParameterType returns unexpected type
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20480819%5D%20New%3A%20delegate%20ParameterType%20returns%0A%09unexpected%20type&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="086612.html">
|
|
<LINK REL="Next" HREF="086614.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 480819] New: delegate ParameterType returns unexpected type</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20480819%5D%20New%3A%20delegate%20ParameterType%20returns%0A%09unexpected%20type&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 480819] New: delegate ParameterType returns unexpected type">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Sun Mar 1 17:43:31 EST 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="086612.html">[Mono-bugs] [Bug 443508] monodoc crashes with selecting namespace node
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086614.html">[Mono-bugs] [Bug 480819] delegate ParameterType returns unexpected type
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86613">[ date ]</a>
|
|
<a href="thread.html#86613">[ thread ]</a>
|
|
<a href="subject.html#86613">[ subject ]</a>
|
|
<a href="author.html#86613">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=480819">https://bugzilla.novell.com/show_bug.cgi?id=480819</A>
|
|
|
|
|
|
Summary: delegate ParameterType returns unexpected type
|
|
Classification: Mono
|
|
Product: Mono: Runtime
|
|
Version: SVN
|
|
Platform: Other
|
|
OS/Version: Other
|
|
Status: NEW
|
|
Severity: Normal
|
|
Priority: P5 - None
|
|
Component: generics
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">basjsmit at gmail.com</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: ---
|
|
|
|
|
|
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
|
|
Gecko/2009011913 Firefox/3.0.6
|
|
|
|
using System;
|
|
|
|
class Program
|
|
{
|
|
private static void Main()
|
|
{
|
|
var target = new Foo<string>();
|
|
|
|
var action = Activator.CreateInstance(
|
|
|
|
typeof(Action<>).MakeGenericType(typeof(string)),
|
|
target,
|
|
|
|
target.GetType().GetMethod("Bar").MethodHandle.GetFunctionPointer()) as
|
|
Action<string>;
|
|
|
|
|
|
if (action.Method.GetParameters()[0].ParameterType == typeof(string))
|
|
Console.WriteLine("clr");
|
|
if (action.Method.GetParameters()[0].ParameterType == typeof(object))
|
|
Console.WriteLine("mono");
|
|
}
|
|
}
|
|
|
|
class Foo<T>
|
|
{
|
|
public void Bar(T value) { }
|
|
}
|
|
|
|
|
|
Reproducible: Always
|
|
|
|
Steps to Reproduce:
|
|
1.Compile and run code above
|
|
|
|
Actual Results:
|
|
differs from clr
|
|
|
|
|
|
Expected Results:
|
|
identical to clr
|
|
|
|
|
|
built with csc, tested on r128214 Fri Feb 27 15:57:55 CET 2009
|
|
|
|
--
|
|
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="086612.html">[Mono-bugs] [Bug 443508] monodoc crashes with selecting namespace node
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086614.html">[Mono-bugs] [Bug 480819] delegate ParameterType returns unexpected type
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86613">[ date ]</a>
|
|
<a href="thread.html#86613">[ thread ]</a>
|
|
<a href="subject.html#86613">[ subject ]</a>
|
|
<a href="author.html#86613">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|