ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/FilterCriteria/RelationalFilterCriterion.cs
/// <summary>
/// Compare the specified value (left value) with the Value property (right value).
/// For instance, this method will return LessThan if value &lt; this.Value.
/// </summary>
Compare the specified value (left value) with the Value property (right value).
For instance, this method will return LessThan if value < this.Value.
Compare the specified value ( left value ) with the Value property ( right value ) . For instance this method will return LessThan if value < this . Value .
internal CompareResult Compare( object value )
    {
      object value2 = this.Value;
      if( ( value == null ) || ( value == DBNull.Value ) || ( value as string == string.Empty ) )
      {
        if( ( value2 == null ) || ( value2 == DBNull.Value ) || ( ( value2 as string ) == string.Empty ) )
        {
          return CompareResult.EqualsTo;
        }
        else
        {
          return CompareResult.LessThan;
        }
      }
      else
      {
        if( ( value2 == null ) || ( value2 == DBNull.Value ) )
        {
          return CompareResult.GreaterThan;
        }
        else if( m_comparableValue == null )
        {
          return object.Equals( value, value2 ) ? CompareResult.EqualsTo : CompareResult.DifferentThan;
        }
        else
        {
          int i = m_comparableValue.CompareTo( value );
          if( i < 0 )
          {
            return CompareResult.GreaterThan;
          }
          else if( i == 0 )
          {
            return CompareResult.EqualsTo;
          }
          else
          {
            return CompareResult.LessThan;
          }
        }
      }
    }
internal CompareResult Compare ( object value ) { object value2 = this . Value ; if ( ( value == null ) || ( value == DBNull . Value ) || ( value as string == string . Empty ) ) { if ( ( value2 == null ) || ( value2 == DBNull . Value ) || ( ( value2 as string ) == string . Empty ) ) { return CompareResult . EqualsTo ; } else { return CompareResult . LessThan ; } } else { if ( ( value2 == null ) || ( value2 == DBNull . Value ) ) { return CompareResult . GreaterThan ; } else if ( m_comparableValue == null ) { return object . Equals ( value , value2 ) ? CompareResult . EqualsTo : CompareResult . DifferentThan ; } else { int i = m_comparableValue . CompareTo ( value ) ; if ( i < 0 ) { return CompareResult . GreaterThan ; } else if ( i == 0 ) { return CompareResult . EqualsTo ; } else { return CompareResult . LessThan ; } } } }
Compare the specified value (left value) with the Value property (right value).
Compare the specified value ( left value ) with the Value property ( right value ) .
// value2 is less than value1: value is greater than. // value2 is greater than value1: value is less than.
value
object