https://bugzilla.novell.com/show_bug.cgi?id=402182

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=402182#c2





--- Comment #2 from andrus moor <[EMAIL PROTECTED]>  2008-06-21 17:25:48 MDT ---
1. Create assembly entityextension.dll containing code:

public class Extension
{
}

2. Create second assembly containing code:

public class Business
{
    class Test : Extension { }
}

3. Create third assembly containing code:

using System.IO;
using System.Reflection;

class Program
{
    static void Main()
    {
        File.Delete("entityextension.dll");
        var res = Assembly.GetAssembly(typeof(Business)).GetTypes();
    }
}

4. Run third assembly using command

mono main.exe 2>t

Observed:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'entityextension, Version=1.0.0.0, Culture=neutral' or one of its
dependencies.

Expected:

System.Reflection.ReflectionTypeLoadException should occur.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to