StableVersion4.3/AppAutoUpdater/AutoUpdater/AutoUpdateHelper/LocalFile.cs

54 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*****************************************************************
* Copyright (C) Knights Warrior Corporation. All rights reserved.
*
* Author: 圣殿骑士Knights Warrior
* Email: KnightsWarrior@msn.com
* Website: http://www.cnblogs.com/KnightsWarrior/ https://github.com/knightswarrior
* Create Date: 5/8/2010
* Usage:
*
* RevisionHistory
* Date Author Description
*
*****************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace KnightsWarriorAutoupdater
{
public class LocalFile
{
#region The private fields
private string path = "";
private string lastver = "";
private int size = 0;
#endregion
#region The public property
[XmlAttribute("path")]
public string Path { get { return path; } set { path = value; } }
[XmlAttribute("lastver")]
public string LastVer { get { return lastver; } set { lastver = value; } }
[XmlAttribute("size")]
public int Size { get { return size; } set { size = value; } }
#endregion
#region The constructor of LocalFile
public LocalFile(string path, string ver, int size)
{
this.path = path;
this.lastver = ver;
this.size = size;
}
public LocalFile()
{
}
#endregion
}
}