[Mono-bugs] [Bug 536290] New: Reports IsPublic=false for public nested types
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 2 10:45:12 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=536290
Summary: Reports IsPublic=false for public nested types
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Cecil
AssignedTo: jbevain at novell.com
ReportedBy: aaragoneses at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
public class SomeType {
public class SomeNestedType {
}
}
public class Program
{
static int Main (string [] args)
{
Mono.Cecil.AssemblyDefinition ass =
Mono.Cecil.AssemblyFactory.GetAssembly ("Test.exe");
foreach (Mono.Cecil.TypeDefinition type in ass.MainModule.Types){
Console.WriteLine ("Type found: ({0}){1}",
type.IsPublic, type.ToString ());
}
}
}
Current results:
Type found: (False)<Module>
Type found: (True)TestTest.SomeType
Type found: (False)TestTest.SomeType/SomeNestedType
Type found: (True)TestTest.Program
Expected results:
Type found: (False)<Module>
Type found: (True)TestTest.SomeType
Type found: (True)TestTest.SomeType/SomeNestedType
Type found: (True)TestTest.Program
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list