程序在运行时,函数中的第一个航代码出现了莫名奇妙的错误,在我的电脑上无法正常运行,在别人的电脑上能正常运行,不知道是什么错误了。
public static Resources DeSerialize(string filePath)
{
System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Resources));
System.IO.FileStream fileStream = new System.IO.FileStream(filePath, System.IO.FileMode.Open);
Resources resources = xmlSerializer.Deserialize(fileStream) as Resources;
fileStream.Close();
return resources;
}