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

24 lines
687 B
C#
Raw Permalink Normal View History

2023-07-30 07:55:10 +00:00
using System;
2023-07-29 00:11:09 +00:00
namespace TLang.Common
{
2023-07-30 07:55:10 +00:00
public class TLangDependency : IEquatable<TLangDependency>
2023-07-29 00:11:09 +00:00
{
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;}
2023-07-30 07:55:10 +00:00
public bool Equals(TLangDependency other)
{
return Name == other.Name && Version.IntegerVersion == other.Version.IntegerVersion;
}
2023-07-29 00:11:09 +00:00
}
}