public String LoadLocalResource(string uri) { EntifyScheme es = new EntifyScheme(this); System.IO.Stream stream = new System.IO.MemoryStream(); String mimeType = ""; es.LoadResource(uri, ref mimeType, ref stream); String str = new StreamReader(stream).ReadToEnd(); stream.Close(); return str; }