Show / Hide Table of Contents

Interface IRange<T>

Interface that defines a range of values.

Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public interface IRange<T> where T : IComparable<T>
Type Parameters
Name Description
T

Base type of the value range.

Properties

| Edit this page View Source

MaxInclusive

Gets or sets a value that determines whether the maximum value is part of the range.

Declaration
bool MaxInclusive { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Maximum

Maximum value of the range.

Declaration
T Maximum { get; set; }
Property Value
Type Description
T
| Edit this page View Source

MinInclusive

Gets or sets a value that determines whether the minimum value is part of the range.

Declaration
bool MinInclusive { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Minimum

Minimum value of the range.

Declaration
T Minimum { get; set; }
Property Value
Type Description
T

Methods

| Edit this page View Source

Intersects(IRange<T>)

Determines if a IRange<T> intersects with this.

Declaration
bool Intersects(IRange<T> other)
Parameters
Type Name Description
IRange<T> other

Range to check.

Returns
Type Description
bool

true if other intersects with this IRange<T>, false otherwise.

| Edit this page View Source

IsWithin(T)

Checks if a value T is within this IRange<T>

Declaration
bool IsWithin(T value)
Parameters
Type Name Description
T value

Value to check.

Returns
Type Description
bool

true if the value is within this IRange<T>, false otherwise.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX