public StartupInfo(string owner, string name, string command, EStartupType startupType, string location, bool isScored) { Owner = owner; Name = name; Command = command; StartupType = startupType; Location = location; IsScored = isScored; }
public static StartupInfo Parse(BinaryReader reader) { // Get all parameters string owner = reader.ReadString(); string name = reader.ReadString(); string command = reader.ReadString(); EStartupType type = (EStartupType)reader.ReadInt32(); string location = reader.ReadString(); bool isScored = reader.ReadBoolean(); // Return initialized class return(new StartupInfo(owner, name, command, type, location, isScored)); }