无法将类型为“System.IO.UnmanagedMemoryStream”的对象强制转换为类型“System.IO.MemoryStream”。
/// <summary>
/// Creates a new AlphaImage from the given resource name.
/// <example>
/// AlphaImage image = AlphaImage.CreateFromResource("AlphaMobileControls.TestApp.Resources.Wallpaper.jpg");
/// </example>
/// </summary>
public static AlphaImage CreateFromResource(string imageResourceName)
{
return CreateFromStream((MemoryStream)Assembly.GetCallingAssembly().GetManifestResourceStream(imageResourceName));
}
不能强转,有间接的转换方法么?求大家指点
------解决方案--------------------
不懂得