src/ExpertSystems/ANFIS/misc/SerializationHelper.cs
/// <summary>
/// Stores object to file with binary serialization
/// </summary>
/// <param name="pObject"></param>
/// <param name="filename"></param>
Stores object to file with binary serialization
Stores object to file with binary serialization
public static void Serialize(T pObject, string filename)
        {
            Stream stream = File.Open(filename, FileMode.Create);
            BinaryFormatter bformatter = new BinaryFormatter();
            bformatter.Serialize(stream, pObject);
            stream.Close();
        }
public static void Serialize ( T pObject , string filename ) { Stream stream = File . Open ( filename , FileMode . Create ) ; BinaryFormatter bformatter = new BinaryFormatter ( ) ; bformatter . Serialize ( stream , pObject ) ; stream . Close ( ) ; }
Stores object to file with binary serialization
Stores object to file with binary serialization
pObject
T
None
filename
string
None