Click or drag to resize
Interval Class
Represents an inclusive closed interval. Provides functions for comparison to other intervals.
Inheritance Hierarchy
SystemObject
  StreamCodersInterval

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class Interval

The Interval type exposes the following members.

Constructors
  NameDescription
Public methodInterval
Creates an empty interval having IsEmpty property set to true.
Public methodInterval(String)
Constructs interval from a string that has the form: "start-end". For example: "100-1000".
Public methodInterval(Int64, Int64)
Constructor.
Top
Properties
  NameDescription
Public propertyEnd
End of interval.
Public propertyIsEmpty
Gets or sets a value indicating whether this object is empty.
Public propertySpan
Gets the span of the interval.
Public propertyStart
Start of interval.
Top
Methods
  NameDescription
Public methodIntersect
Creates an intersection with another Interval. Both intervals must intersect for this method to succeed.
Public methodIsContained
Checks whether a value is contained within the interval.
Public methodIsIntersected
Query if interval intersected with another interval.
Public methodUnion
Creates a Union with another Interval. Both intervals must intersect for this method to succeed.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also