C# - '不支持给定路径的格式。'

时间:2018-04-12 04:01:17

标签: c#

private void saveStudent<T>(string filePath, T objectToWrite) 
{
  stream = File.OpenWrite(filePath); **//Error is here**
  var binaryData = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
  binaryData.Serialize(stream, objectToWrite);
  stream.Close();
}

0 个答案:

没有答案