public string JsonSummarization(SummaryOutputDisplayMethods OutputDisplay = SummaryOutputDisplayMethods.OnlyMismatch, bool IndentOutput = true) { switch (OutputDisplay) { case SummaryOutputDisplayMethods.OnlyMismatch: return(JsonConvert.SerializeObject(this, IndentOutput ? Formatting.Indented : Formatting.None)); } throw new Exception("How the hell did you even get here?"); }
public bool GetMatchDetailsJson(out string Json, SummaryOutputDisplayMethods OutputDisplay = SummaryOutputDisplayMethods.OnlyMismatch, bool IndentOutput = true) { Json = JsonSummarization(OutputDisplay, IndentOutput); return(Matches); }