cleanup Page.cs

This commit is contained in:
adelikat 2020-02-25 13:15:52 -06:00
parent 72d4b0ac46
commit 35697aaefa
1 changed files with 17 additions and 30 deletions

View File

@ -1,37 +1,24 @@
//public domain assumed from cyotek.com using System.IO;
using System.IO;
// public domain assumed from cyotek.com
namespace Cyotek.Drawing.BitmapFont namespace Cyotek.Drawing.BitmapFont
{ {
public struct Page public struct Page
{ {
#region  Public Constructors
public Page(int id, string fileName) public Page(int id, string fileName)
: this() : this()
{ {
this.FileName = fileName; FileName = fileName;
this.Id = id; Id = id;
} }
#endregion  Public Constructors
#region  Public Methods
public override string ToString() public override string ToString()
{ {
return string.Format("{0} ({1})", this.Id, Path.GetFileName(this.FileName)); return $"{Id} ({Path.GetFileName(FileName)})";
} }
#endregion  Public Methods
#region  Public Properties
public string FileName { get; set; } public string FileName { get; set; }
public int Id { get; set; } public int Id { get; set; }
#endregion  Public Properties
} }
} }