/// <summary>
 /// Initializes a new instance of the <see cref="BooleanConverter" /> class with the specified conversion method.
 /// </summary>
 /// <param name="method">The method that is used to convert the <see cref="bool" />? value.</param>
 public BooleanConverter(BooleanConverterMethod method)
 {
     Method = method;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RangeConverter" /> class with the specified range and result transformation. By default, <paramref name="min" /> and <paramref name="max" /> are inclusive.
 /// </summary>
 /// <param name="min">The minimum value of the range.</param>
 /// <param name="max">The maximum value of the range.</param>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(IComparable)" /> method returns.</param>
 public RangeConverter(IComparable min, IComparable max, BooleanConverterMethod result)
 {
     Min    = min;
     Max    = max;
     Result = result;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NullConverter" /> class with the specified result transformation.
 /// </summary>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(object)" /> method returns.</param>
 public NullConverter(BooleanConverterMethod result)
 {
     Result = result;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="IEnumerableAnyConverter" /> class with the specified result transformation.
 /// </summary>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(IEnumerable)" /> method returns.</param>
 public IEnumerableAnyConverter(BooleanConverterMethod result)
 {
     Result = result;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EqualityConverter" /> class with the specified conversion method and result transformation.
 /// </summary>
 /// <param name="method">The method that is used to compare the value and parameter.</param>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(object, object)" /> method returns.</param>
 public EqualityConverter(EqualityConverterMethod method, BooleanConverterMethod result)
 {
     Method = method;
     Result = result;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StringEmptyConverter" /> class with the specified conversion method and result transformation.
 /// </summary>
 /// <param name="method">The method that is used to check the <see cref="string" /> value for emptiness.</param>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(string)" /> method returns.</param>
 public StringEmptyConverter(StringEmptyConverterMethod method, BooleanConverterMethod result)
 {
     Method = method;
     Result = result;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TypeConverter" /> class with the specified conversion method and result transformation.
 /// </summary>
 /// <param name="method">The method that is used to convert the <see cref="Type" /> of the <see cref="object" /> value.</param>
 /// <param name="result">Specifies how the <see cref="bool" /> result is converted before the <see cref="Convert(object, Type)" /> method returns.</param>
 public TypeConverter(TypeConverterMethod method, BooleanConverterMethod result)
 {
     Method = method;
     Result = result;
 }