using System; namespace Ariadne.Generator { /// /// A code-behind file to write, as plain data. /// public sealed class ArcFile : IEquatable { public readonly string FileName; public readonly string Text; public ArcFile(string fileName, string text) { FileName = fileName; Text = text; } public bool Equals(ArcFile other) { return other != null && FileName == other.FileName && Text == other.Text; } public override bool Equals(object obj) { return Equals(obj as ArcFile); } public override int GetHashCode() { return FileName.GetHashCode() * 31 + Text.GetHashCode(); } } }