GuardConstraint
StockSharp.Xaml.Charting.Utility
允许用以下语法构建断言: Guard.Assert (123). IsLessThan (456);
构造函数
GuardConstraint
public GuardConstraint(IComparable value, string argName)
guardConstraint = GuardConstraint(value, argName)
初始化了 & ##GuardConstraint+# 类的新实例 。
- value
- 价值 价值
- argName
- 取名取义.
方法
IsEqualTo
public void IsEqualTo(IComparable other, string otherArgName)
guardConstraint.IsEqualTo(other, otherArgName)
确定当前值与指定的其他值相等
- other
- 另一种价值。
- otherArgName
- 其它的词的名称。
IsGreaterThan
public void IsGreaterThan(IComparable other)
guardConstraint.IsGreaterThan(other)
确定当前值大于指定的其他值
- other
- 另一种价值。
IsGreaterThanOrEqualTo
public void IsGreaterThanOrEqualTo(IComparable other)
guardConstraint.IsGreaterThanOrEqualTo(other)
确定当前值大于或等于指定的其他值
- other
- 另一种价值。
IsLessThan
public void IsLessThan(IComparable other, string otherArgName)
guardConstraint.IsLessThan(other, otherArgName)
确定当前值小于指定的其他值
- other
- 另一种价值。
- otherArgName
- 其它的词的名称。
IsLessThanOrEqualTo
public void IsLessThanOrEqualTo(IComparable other, string otherArgName)
guardConstraint.IsLessThanOrEqualTo(other, otherArgName)
确定当前值小于或等于指定的其他值
- other
- 另一种价值。
- otherArgName
- 其它的词的名称。
IsNotEqualTo
public void IsNotEqualTo(IComparable other, string otherArgName)
guardConstraint.IsNotEqualTo(other, otherArgName)
确定当前值不等于指定的其他值
- other
- 另一种价值。
- otherArgName
- 其它的词的名称。
IsNotEqualTo
public void IsNotEqualTo(IComparable other)
guardConstraint.IsNotEqualTo(other)
确定当前值不等于指定的其他值
- other
- 另一种价值。