I am creating a method to serialize a file using this code:
public void Save(Object file, Type type, String path) {
But Visual Studio tells me about this when I try to create: "Error 1 Could not find the type or namespace name" type "(using directive or assembly reference missing?) C: \ users \ erik \ documents \ visual studio 2013 \ Projects \ FileSerializer \ FileSerializer \ Class1.cs 16 65 FileSerializer "
Why is this?
**EDIT*
New code that works:
public void Save(Object file, String path, Type type) {
read by phone:
myClass newClass = (myClass)Read(file, type);
Save by phone:
Save(object, path, type);
Thanks! Erik
source share