code_junkie

How do I find out whether a ResourceManager contains a key without calling ResourceManager.GetString() and catching the exception

Nov 14th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. rm = new ResourceManager("MyNamespace.Properties.MyResource", assembly);
  2.  
  3. rm = new ResourceManager("MyNamespace.MyResource", assembly);
  4.  
  5. var r = new ResourceManager("MyResource", assembly);
  6.  
  7. var r = new ResourceManager("MyNamespace.MyResource", assembly);
Add Comment
Please, Sign In to add comment