Working with the ResourceManager [Kim Hamilton]

The essentials of resource fallback and how to debug failures Resource loading failures can be tricky to debug. However, once you have a basic overview of how the ResourceManager works, as well as a few debugging tools, you’ll be able to easily get to the bottom of most problems. This post will cover the key…


Performance tips for using resources [David Gutierrez]

The most expensive parts of reading resources are probing for satellite assemblies and deserializing objects.  The more you can avoid having the ResourceManager do either of those two tasks, the faster your resource reads will be.  In this post I’ll cover how to reduce assembly probing, and the first thing you can do is use…


ResourceReader.GetResourceData and ResourceTypeCodes [Mike Rousos]

Intro ResourceReader is a useful type for quickly enumerating through resources in a resources file, but it has trouble if it cannot deserialize one of the resources. This limitation is compensated for, in v2.0 of the framework, with the GetResourceData method. This method allows the caller to retrieve the bytes of a resource (and its…


ResourceManager Video Presentation [Brian Grunkemeyer]

Ahmed & I did a video presentation on System.Resources and how to use the ResourceManager for loading localized strings (and images, etc) in a globalized application.  If you’re new to using the ResourceManager, this should be a good high-level overview of why and how to use the ResourceManager, what satellite assemblies are, and we included…


ResourceManager & new optimizations for MemoryStream & byte[] [Brian Grunkemeyer]

With Whidbey Beta 1, we’ve done some performance optimizations for Streams & byte[]’s stored in .resources files. The optimizations for byte[]’s are the relatively obvious ones – don’t use serialization, etc. The interesting change happened for MemoryStream. Instead of serializing a MemoryStream then deserializing it at runtime, we generally memory map the .resources file, then return an…


New BCL features in Beta1

[Ahmed AbouTaleb] Here is a list of all the new BCL features that shipped in Visual studio 2005 Beta1 Regular Expressions We added the ability to use character class subtraction to regular expressions. The specification is publicly available here.   Compression Support We have added the ability to compress, and decompress streams using the standard GZip and…


Managed Resource Viewer (ResView) [Brian Grunkemeyer]

If you’ve ever wanted to look at managed localizable resources, grab a copy of ResView from the BCL team demos page, or at this site http://www.gotdotnet.com/team/clr/bcl/demos/demos/zipfiles/ResViewCS.zip. ResView will allow you to look at the resources in a main assembly, a satellite assembly, a .resources file, or a ResX file. This is useful for tracking down…