Click or drag to resize

RangeT Class

Represents a range of values defined by start and end value.
Inheritance Hierarchy
SystemObject
  GSFRangeT
    GSF.IOOutage

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.177-beta
Syntax
public class Range<T>
View Source

Type Parameters

T

The RangeT type exposes the following members.

Constructors
 NameDescription
Public methodRangeT Creates a new instance of the RangeT class using the default comparer.
Top
Properties
 NameDescription
Public propertyEnd Gets the end value of the range.
Public propertyStart Gets the start value of the range.
Top
Methods
 NameDescription
Public methodContains(T) Determines whether the range contains the given value.
Public methodContains(RangeT) Determines whether the range contains the given range.
Public methodContains(T, IComparerT) Determines whether the range contains the given value.
Public methodContains(T, ComparisonT) Determines whether the range contains the given value.
Public methodContains(RangeT, IComparerT) Determines whether the range contains the given range.
Public methodContains(RangeT, ComparisonT) Determines whether the range contains the given range.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberMerge(IEnumerableRangeT) Merges all ranges in a collection of ranges.
Public methodMerge(RangeT) Merges two ranges into one range that fully encompasses both ranges.
Public methodStatic memberMerge(IEnumerableRangeT, ComparerT) Merges all ranges in a collection of ranges.
Public methodStatic memberMerge(IEnumerableRangeT, ComparisonT) Merges all ranges in a collection of ranges.
Public methodMerge(RangeT, IComparerT) Merges two ranges into one range that fully encompasses both ranges.
Public methodMerge(RangeT, ComparisonT) Merges two ranges into one range that fully encompasses both ranges.
Public methodStatic memberMergeAllOverlapping(IEnumerableRangeT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodStatic memberMergeAllOverlapping(IEnumerableRangeT, IComparerT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodStatic memberMergeAllOverlapping(IEnumerableRangeT, ComparisonT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodStatic memberMergeConsecutiveOverlapping(IEnumerableRangeT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodStatic memberMergeConsecutiveOverlapping(IEnumerableRangeT, IComparerT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodStatic memberMergeConsecutiveOverlapping(IEnumerableRangeT, ComparisonT) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Public methodOverlaps(RangeT) Determines whether the range overlaps with the given range.
Public methodOverlaps(RangeT, IComparerT) Determines whether the range overlaps with the given range.
Public methodOverlaps(RangeT, ComparisonT) Determines whether the range overlaps with the given range.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also

Reference

GSF Namespace