public static string GetMessage(ResourceManager resourceManager, int errorCode)
{
string result = null;
try
{
result = resourceManager.GetString(errorCode.ToString());
}
catch
{
result = String.Format(ManifestNotFound, errorCode, resourceManager.BaseName);
}
if (result == null)
result = String.Format(MessageNotFound, errorCode, resourceManager.BaseName);
return result;
}