how to add items to resource file (resx) on run time?
<p>i have some global resource files that store my dictionary for app.<br>
when a key is not in the resource file i return the key.</p>

<pre><code>public Object MyGetGlobalResourceObject(string classKey, string resourceKey)
    {
        try
        {
            if (GetGlobalResourceObject(classKey, resourceKey) == null)
            {
                return resourceKey;
            }
            else
                return GetGlobalResourceObject(classKey, resourceKey);

        }
        catch (MissingManifestResourceException ex)
        {
             return classKey + "-" + resourceKey + " " + ex.ToString();
        }
    }
</code></pre>

<p>i want to add the resourceKey to the classKey file.</p>
