问题描述
你好朋友,
我正在Silverlight 4中开发游戏
并且我创建了一个类stream.cs
我在执行时间上有问题
错误是值不能为空.参数名称:stream Error
这是班
所以请帮我:代码在这里-
公共Canvas LoadSpriteCanvas(string xamlPath)
{
System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream(xamlPath);
return(Canvas)XamlReader.Load(new System.IO.StreamReader(s).ReadToEnd());//错误在这里
}
Hello Friends,
I am developing a game in Silverlight 4
and i have created a class stream.cs
i have problem in execution time
Error is Value cannot be null. Parameter name: stream Error
this is the Class
so please help me: Code is Here-
public Canvas LoadSpriteCanvas(string xamlPath)
{
System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream(xamlPath);
return (Canvas)XamlReader.Load(new System.IO.StreamReader(s).ReadToEnd());// Error is here
}
推荐答案
这篇关于值不能为空.参数名称:流错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!