X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Drawing%2FSystem.Drawing%2FToolboxBitmapAttribute.cs;h=6352155fb964172c079b94682d4f27d23ae28a88;hb=f121eb73d4f268446c047d015303a80b71380b90;hp=9737b48e1dcceb1825189a0dc9ef489eee389ac3;hpb=9d61782c6e2392d7ceec2006b35be582598a70ae;p=mono.git diff --git a/mcs/class/System.Drawing/System.Drawing/ToolboxBitmapAttribute.cs b/mcs/class/System.Drawing/System.Drawing/ToolboxBitmapAttribute.cs index 9737b48e1dc..6352155fb96 100644 --- a/mcs/class/System.Drawing/System.Drawing/ToolboxBitmapAttribute.cs +++ b/mcs/class/System.Drawing/System.Drawing/ToolboxBitmapAttribute.cs @@ -33,6 +33,7 @@ // using System; +using System.Reflection; namespace System.Drawing { @@ -116,7 +117,7 @@ namespace System.Drawing imageName = t.Name + ".bmp"; try { - using (System.IO.Stream s = t.Assembly.GetManifestResourceStream (t.Namespace + "." + imageName)){ + using (System.IO.Stream s = t.GetTypeInfo ().Assembly.GetManifestResourceStream (t.Namespace + "." + imageName)){ if (s == null) { return null; } else {