/// <summary>
 /// Helper function called from strongly typed resources to retrieve
 /// non-string based resource values.
 ///
 /// This method returns a resource value based on the active
 /// Generated ResourceAccessMode.
 /// </summary>
 /// <param name="resourceSet"></param>
 /// <param name="resourceId"></param>
 /// <param name="manager"></param>
 /// <param name="resourceMode"></param>
 /// <returns></returns>
 public static object GetResourceObject(string resourceSet, string resourceId,
                                        ResourceManager manager,
                                        ResourceAccessMode resourceMode)
 {
     if (resourceMode == ResourceAccessMode.Resx)
     {
         return(manager.GetObject(resourceId));
     }
     return(DbRes.TObject(resourceId, resourceSet));
 }