Dirk Bonné
unread,Oct 20, 2009, 8:48:57 AM10/20/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mono-cecil
Hi
I noticed a problem when trying importing a nullable bool:
[Test]
public void ImportNullable()
{
var assDef = AssemblyFactory.DefineAssembly("test", "test",
TargetRuntime.NET_2_0, AssemblyKind.Dll);
var tr = assDef.MainModule.Import(typeof(bool?));
Assert.IsTrue(tr.IsValueType);
}
I would expect IsValueType to return true for "bool?".
Is this a bug?
I fell over that when generating properties/fields with nullable
types, and it may be the cause of a type loader exception.
Any ideas to get around this?
regards
Dirk