Hi
I have a part of code like this
Assembly myAssembly = Assembly.GetExecutingAssembly();
string[] names = myAssembly.GetManifestResourceNames();
foreach (string file in names)
{
if (file.EndsWith(".dtd"))
{
// attach to stream to the resource in the manifest
dtdStream = myAssembly.GetManifestResourceStream(file);
MessageBox.Show(dtdStream.ToString());
}
}
i have all the dtd files under my Resources folder.Which has build type Embedded Resource.
Now when i Debug the code i am getting a message box showing System.IO.UnmanagedMemoryStream
But i want a Managed MemoryStream?
What is wrong in my code?
Thanks...