GetGlobalResourceObject exception handling
<p>I have a project that makes extensive use of the GetGlobalResourceObject  which is a member of the System.Web.UI class. It works fine providing english or french labels to the bilingual C#/ASP.NET application.</p>

<p>But....if the reference in the resource file is missing or malformed the application crashes</p>

<p>There are hundreds of calls like this</p>

<p>GetGlobalResourceObject("XXX.WebResource", "Remove")</p>

<p>Is there any way to encapsulate the GetGlobalResourceObject with an exception handler so that it returns null and logs it if there's a problem without adding a try/catch to each call?</p>

<p>I am new to C# so I don't know if I can override the GetGlobalResourceObject with my own class and then do a search and replace.  Surely there is a better way.</p>

<p>Kevinsky</p>
