[Mono-devel-list] [PATCH] Assembly.GetReferencedAssemblies shouldn't return codebase
Sebastien Pouliot
sebastien at ximian.com
Mon Apr 4 10:27:06 EDT 2005
Hello,
Simply put, Assembly.GetReferencedAssemblies() should returns an
"limited" AssemblyName array (with null values for CodeBase/
EscapedCodeBase). Which means that the security checks aren't required
(for CAS) as the important informations (the path) isn't available from
it.
This is important because it without this Assembly.GetReferenced
Assemblies couldn't be called from partial trust (like it can be under
MS framework).
Does anyone depend on that behavior ? (i.e. getting the CodeBase from
the AssemblyName returned from Assembly.GetReferencedAssemblies).
If not then I'll commit this immediately (with unit tests), else I'll
wait for the depending code to be fixed before committing.
Thanks
--
Sebastien Pouliot <sebastien at ximian.com>
blog: http://pages.infinit.net/ctech/poupou.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getreferencedassemblies.diff
Type: text/x-patch
Size: 2027 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050404/583cb636/attachment.bin
More information about the Mono-devel-list
mailing list