using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Reflection;
using System.Xml;
using System.Web;
///
/// Common utility functions.
///
public static class Util
{
///
/// Loads a resource given an assembly-relative resource name and an anchor type.
///
public static Stream GetResourceAsStream(string name)
{
Assembly a = typeof(T).Assembly;
return a.GetManifestResourceStream(a.GetName().Name + "." + name);
}
}