Replace CntrlComparison with LeafGasComparison
This commit is contained in:
@@ -8,6 +8,7 @@ namespace LeafWeb.Core.Utility
|
||||
public class ParseInfoAttribute : Attribute
|
||||
{
|
||||
public int Position { get; private set; }
|
||||
public int? BoolEncodedPosition { get; private set; }
|
||||
public string Units { get; private set; }
|
||||
public string Title { get; private set; }
|
||||
public string AlterateTitle { get; private set; }
|
||||
@@ -23,13 +24,16 @@ namespace LeafWeb.Core.Utility
|
||||
}
|
||||
}
|
||||
|
||||
public ParseInfoAttribute(int position, [CallerMemberName]string title = null, string units = null, string alternateTitle = null, string exampleValue = null)
|
||||
public ParseInfoAttribute(int position, [CallerMemberName]string title = null,
|
||||
string units = null, string alternateTitle = null, string exampleValue = null,
|
||||
int boolEncodedPosition = -1)
|
||||
{
|
||||
AlterateTitle = alternateTitle;
|
||||
ExampleValue = exampleValue;
|
||||
Title = title;
|
||||
Position = position;
|
||||
Units = units;
|
||||
BoolEncodedPosition = boolEncodedPosition == -1 ? (int?)null : boolEncodedPosition;
|
||||
}
|
||||
|
||||
public bool IsTitleMatch(string title)
|
||||
|
||||
Reference in New Issue
Block a user