Class Range
Summary description for Range.
Inheritance
System.Object
Range
Assembly: ImageVault.Common.dll
Syntax
public sealed class Range : ValueType
Constructors
Range(Int64, Int64)
Initializes a new instance of the Range class.
Declaration
public Range(long offset, long length)
Parameters
| Type |
Name |
Description |
| System.Int64 |
offset |
|
| System.Int64 |
length |
|
Fields
All
Gets the All of the Range
Declaration
public static readonly Range All
Field Value
Length
Gets the Length of the Range
Declaration
public readonly long Length
Field Value
| Type |
Description |
| System.Int64 |
|
Offset
Gets the Offset of the Range
Declaration
public readonly long Offset
Field Value
| Type |
Description |
| System.Int64 |
|
Methods
Equals(Range)
Declaration
public bool Equals(Range other)
Parameters
| Type |
Name |
Description |
| Range |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Parse(String)
Parses the supplied range header
Declaration
public static Range Parse(string range)
Parameters
| Type |
Name |
Description |
| System.String |
range |
The range to parse
|
Returns
| Type |
Description |
| Range |
The parsed range
|
Exceptions
| Type |
Condition |
| System.ApplicationException |
If only supports byte ranges
or if cannot parse byte range .
|
Operators
Equality(Range, Range)
Declaration
public static bool operator ==(Range left, Range right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(Range, Range)
Declaration
public static bool operator !=(Range left, Range right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods