나는 형을 포함 리소스를 구축가 folder.Which 내 자원에서 나는 모든 DTD 파일이이스트림을 System.IO.UnmanagedMemoryStream으로 가져 오는 이유는 무엇입니까?
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());
}
}
같은 코드의 일부를 가지고있다.
이제 코드를 디버그하면 System.IO.UnmanagedMemoryStream을 표시하는 메시지 상자가 나타납니다
하지만 Managed MemoryStream을 원하십니까?
내 코드가 잘못 되었나요?
감사합니다 ...
왜 관리되는 메모리 스트림이 필요합니까? –