ini-parser
ini-parser copied to clipboard
Serialize Class to IniData
How do i (de)-serialize a C# class to IniData?
Something similar to https://json2csharp.com/
public partial class MMCInstanceConfig
{
public static string AutoCloseConsole { get; set; } = "true";
public static string ForgeVersion { get; set; }
public static string InstanceType { get; set; } = "OneSix";
public static string IntendedVersion { get; set; }
public static string JavaArchitecture { get; set; } = "64";
public static string JavaPath { get; set; } = "C:/Program Files/AdoptOpenJDK/jdk-15.0.2.7-hotspot/bin/javaw.exe";
public static string JavaTimestamp { get; set; } = "1611206204000";
public static string JavaVersion { get; set; } = "15.0.2";
public static string JvmArgs { get; set; } = "-XX:+UnlockExperimentalVMOptions";
public static string LWJGLVersion { get; set; }
public static string LaunchMaximized { get; set; } = "false";
public static string LiteloaderVersion { get; set; }
public static string LogPrePostOutput { get; set; } = "true";
public static string MCLaunchMethod { get; set; } = "LauncherPart";
public static string MaxMemAlloc { get; set; } = "512";
public static string MinMemAlloc { get; set; } = "2048";
public static string MinecraftWinHeight { get; set; } = "480";
public static string MinecraftWinWidth { get; set; } = "854";
public static string OverrideCommands { get; set; } = "false";
public static string OverrideConsole { get; set; } = "false";
public static string OverrideJava { get; set; } = "false";
public static string OverrideJavaArgs { get; set; } = "true";
public static string OverrideJavaLocation { get; set; } = "true";
public static string OverrideMCLaunchMethod { get; set; } = "false";
public static string OverrideMemory { get; set; } = "true";
public static string OverrideNativeWorkarounds { get; set; } = "false";
public static string OverrideWindow { get; set; } = "false";
public static string PermGen { get; set; } = "128";
public static string PostExitCommand { get; set; }
public static string PreLaunchCommand { get; set; }
public static string ShowConsole { get; set; } = "false";
public static string ShowConsoleOnError { get; set; } = "true";
public static string UseNativeGLFW { get; set; } = "false";
public static string UseNativeOpenAL { get; set; } = "false";
public static string WrapperCommand { get; set; }
public static string iconKey { get; set; }
public static string lastLaunchTime { get; set; } = "1614793595994";
public static string name { get; set; }
public static string notes { get; set; }
public static string totalTimePlayed { get; set; } = "184";
}