[Mono-list] a diffenrence between .Net & mono impl in System.Reflection
George Zhong
iie at 163.net
Wed Jun 17 23:59:29 EDT 2009
while porting application, I find an incompatible in
Assembly.GetManifestResourceStream method
in .Net GetManifestResourceStream(string) have to give full path of the
resouce prefixed namespace even if it is called inside this namespace.
or we have to use another parameter to locate the namespace:
GetManifestResourceStream(typeof(aClassinThisNamespace), shortName);
but in mono 2.4, we can use
GetManifestResourceStream(shortName);
inside the namespace, and giving fullname yields a runtime error.
and seems we can also use
GetManifestResourceStream(null, shortName);
--
View this message in context: http://www.nabble.com/a-diffenrence-between-.Net---mono-impl-in-System.Reflection-tp24086039p24086039.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list