0

I have a strange issue with the C# ResourceManager. The following kind of fails:

var rm = new ResourceManager(typeof(myStrings));
var resources = rm.GetResourceSet(culture, false, false);

Now 'resources' is null. But the following works:

rm.GetStream(""); 
var resources = rm.GetResourceSet(culture, false, false);

Why does it only work when I call .GetStream("") first?

Anders Nygaard
  • 5,433
  • 2
  • 21
  • 30
  • I'm not sure that this is the case, but might be helpful: http://stackoverflow.com/questions/1646233/why-does-resourcemanager-getresourceset-return-null-on-the-first-request-after-a?rq=1 – default locale Oct 23 '12 at 12:37
  • 1
    That's equivalent to GetResourceSet(culture, true, true) – Hans Passant Oct 23 '12 at 12:57

0 Answers0