Browse Source

Fixed some dumb things for compatability with .NET 3

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
b7433eaa74
2 changed files with 6 additions and 4 deletions
  1. +3
    -2
      IPA.Loader/Config/Data/List.cs
  2. +3
    -2
      IPA.Loader/Config/Data/Map.cs

+ 3
- 2
IPA.Loader/Config/Data/List.cs View File

@ -1,4 +1,5 @@
using System;
using IPA.Utilities;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@ -112,7 +113,7 @@ namespace IPA.Config.Data
/// </summary>
/// <returns>a comma-seperated list of the result of <see cref="Value.ToString"/> wrapped in square brackets</returns>
public override string ToString()
=> $"[{string.Join(",",this.Select(v => v.ToString()))}]";
=> $"[{string.Join(",",this.Select(v => v.ToString()).StrJP())}]";
IEnumerator IEnumerable.GetEnumerator() => ((IList<Value>)values).GetEnumerator();
}


+ 3
- 2
IPA.Loader/Config/Data/Map.cs View File

@ -1,4 +1,5 @@
using System.Collections;
using IPA.Utilities;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@ -108,7 +109,7 @@ namespace IPA.Config.Data
/// </summary>
/// <returns>a JSON-like set of key-value pairs</returns>
public override string ToString()
=> $"{{{string.Join(",", this.Select(p => $"\"{p.Key}\":{p.Value.ToString()}"))}}}";
=> $"{{{string.Join(",", this.Select(p => $"\"{p.Key}\":{p.Value.ToString()}").StrJP())}}}";
}


Loading…
Cancel
Save