.net - How do I find out whether a ResourceManager contains a key without calling ResourceManager.GetString() and catching the exception? -
Then I have a resource manager that points to a resource file with a group of stars in it when I Call GetString ()
with a key which is not present in the file, then give me a system The resource is received. Missingmanified resource exposure
. It is necessary to know whether the key specified in the resource is included without exception handling to control the program flow. Are there any keys? Axis () method or something?
Note that by default, it seems that the resource of the new .NET project. So you have to create a resource manager like this:
rm = new resource manager ("MyNamespace.Properties.MyResource", gathering); Alternatively, by frustrating / re-processing / re-processing the resources, you can probably create it in the root of this project, in which case you were doing earlier. , That is: RM = New Resource Manager ("MyNamespace.MyResource", Assembly);
Will work today What happened to me, and I am adding this post to the hope that it will give some sadness to anyone.
Comments
Post a Comment