# RangeFactory Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.rangefactory/)

## CreateFullRange {#createfullrange-99420966}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.rangefactory/methods/createfullrange-99420966/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RingRange.cs#L193)

```csharp
public static IRingRange CreateFullRange()
```

Creates the full range.

### Returns

IRingRange.

## CreateRange(List&lt;IRingRange&gt;) {#createrange-system-collections-generic-list-orleans-runtime-iringrange-aefec566}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.rangefactory/methods/createrange-system-collections-generic-list-orleans-runtime-iringrange-aefec566/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RingRange.cs#L208-L213)

```csharp
public static IRingRange CreateRange(List<IRingRange> inRanges)
```

Creates a new [IRingRange](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.iringrange/) representing the union of all provided ranges.

### Parameters

- `inRanges` (`List<IRingRange>`): The ranges.

### Returns

A new [IRingRange](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.iringrange/) representing the union of all provided ranges.

## CreateRange(uint, uint) {#createrange-uint-uint-e3b68d41}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.rangefactory/methods/createrange-uint-uint-e3b68d41/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RingRange.cs#L201)

```csharp
public static IRingRange CreateRange(uint begin, uint end)
```

Creates a new [IRingRange](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.iringrange/) representing the values between the exclusive lower bound, `begin`, and the inclusive upper bound, `end`.

### Parameters

- `begin` (`uint`): The exclusive lower bound.
- `end` (`uint`): The inclusive upper bound.

### Returns

A new [IRingRange](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.iringrange/) representing the values between the exclusive lower bound, `begin`, and the inclusive upper bound, `end`.

## GetSubRanges(IRingRange) {#getsubranges-orleans-runtime-iringrange-fda4d762}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.rangefactory/methods/getsubranges-orleans-runtime-iringrange-fda4d762/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RingRange.cs#L230-L235)

```csharp
public static IEnumerable<ISingleRange> GetSubRanges(IRingRange range)
```

Gets the contiguous sub-ranges represented by the provided range.

### Parameters

- `range` (`IRingRange`): The range.

### Returns

The contiguous sub-ranges represented by the provided range.
