Extension Methods
The following topic describes the various extension methods provided for several .NET and WPF types.
Decimal Extensions
The DecimalExtensions type contains extension methods for the Decimal type.
| Type | Description |
|---|---|
| IsWithin | Determines whether the two values are within a specified range. |
| Range | Returns the specified value constrained to the specified minimum and maximum values. |
| Round | Returns a rounded number using the specified RoundMode. |
Double Extensions
The DoubleExtensions type contains extension methods for the Double type.
| Type | Description |
|---|---|
| IsEffectivelyEqual | Determines whether the two values are close enough to be considered equal. |
| IsEffectivelyGreaterThan | Determines whether the left value is effectively greater than the right value. |
| IsEffectivelyGreaterThanOrEqual | Determines whether the left value is effectively greater than or equal to the right value. |
| IsEffectivelyLessThan | Determines whether the left value is effectively less than the right value. |
| IsEffectivelyLessThanOrEqual | Determines whether the left value is effectively less than or equal to the right value. |
| IsWithin | Determines whether the two values are within a specified range. |
| Range | Returns the specified value constrained to the specified minimum and maximum values. |
| Round | Returns a rounded number using the specified RoundMode. |
Int32 Extensions
The Int32Extensions type contains extension methods for the Int32 type.
| Type | Description |
|---|---|
| IsWithin | Determines whether the two values are within a specified range. |
| Range | Returns the specified value constrained to the specified minimum and maximum values. |
Point Extensions
The PointExtensions type contains extension methods for the Point type.
| Type | Description |
|---|---|
| IsEffectivelyEqual | Determines whether the two values are close enough to be considered equal. |
| IsWithin | Determines whether the two values are within a specified range. |
| Midpoint | Gets the mid-point between the specified points. |
Size Extensions
The SizeExtensions type contains extension methods for the Size type.
| Type | Description |
|---|---|
| IsEffectivelyEqual | Determines whether the two values are close enough to be considered equal. |
| IsWithin | Determines whether the two values are within a specified range. |