using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
publicstaticclass Util
{
publicstatic Type GetResourceAssemblyType()
{
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
{
foreach (Type t in assembly.GetTypes())
{
if (t.Name == "Resources")
{
return t;
}
}
}
thrownew ApplicationException("Cannot find the Resource Assembly");
}
}