/// <summary> /// Serializes the object /// </summary> public void Serialize(BinaryWriter writer) { OverallFingerprint.WriteTo(writer); BuildEngineHash.WriteTo(writer); ConfigFileHash.WriteTo(writer); QualifierHash.WriteTo(writer); FilterHash.WriteTo(writer); writer.Write(EvaluationFilter != null); EvaluationFilter?.Serialize(writer); }
/// <summary> /// Writes as text. /// </summary> public void WriteText(TextWriter writer) { writer.WriteLine(I($"Overall fingerprint: {OverallFingerprint.ToString()}")); writer.WriteLine(I($"Build engine hash: {BuildEngineHash.ToString()}")); writer.WriteLine(I($"Config file hash: {ConfigFileHash.ToString()}")); writer.WriteLine(I($"Qualifier hash: {QualifierHash.ToString()}")); writer.WriteLine(I($"Filter hash: {FilterHash.ToString()}")); if (EvaluationFilter != null) { writer.WriteLine(I($"Filter:")); writer.WriteLine(EvaluationFilter.ToDisplayString()); } }