tlang-runtime-compiler/TLang.Common/TLangDependency.cs

24 lines
687 B
C#

using System;
namespace TLang.Common
{
public class TLangDependency : IEquatable<TLangDependency>
{
public TLangDependency(string name,TLangVersion version)
{
Name = name;
Version = version;
}
public TLangDependency(string name,byte major,byte minor,byte patch,byte build) : this(name,new TLangVersion(major,minor,patch,build))
{
}
public string Name {get;set;}
public TLangVersion Version {get;set;}
public bool Equals(TLangDependency other)
{
return Name == other.Name && Version.IntegerVersion == other.Version.IntegerVersion;
}
}
}