示例#1
0
 public static string SerializeProfile(LaunchProfile profile)
 => JsonConvert.SerializeObject(profile, Formatting.Indented, jsonConverters);
示例#2
0
 private static void ProvideDefaults(LaunchProfile profile)
 {
     // if a property doesn't exist in version 1.0 and the property is added in version 2.0
     // the json put null, to this property
     profile.LauncherOptions = profile.LauncherOptions ?? new LauncherOptions();
 }