# RequestCodeHelper

> Namespace: XPlat.Helpers

Represents a helper for generating request codes for applications.

```csharp
public static class RequestCodeHelper
```

## Supported platforms

| Platform        | Version    |
| --------------- | ---------- |
| .NET Standard   | 2.0        |
| Xamarin.Android | 9.0        |
| Xamarin.iOS     | 1.0        |
| UWP             | 10.0.16299 |

## Static Properties

### LastRequestCode

Gets the last requested code.

```csharp
public static int LastRequestCode { get; }
```

## Static Methods

### GenerateRequestCode()

Generates an integer request code.

```csharp
public static int GenerateRequestCode()
```

#### Returns

Returns a value ranging from 1 to 65535 (ushort.MaxValue).

### Reset()

Resets the request code.

```csharp
public static void Reset()
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xplat.gitbook.io/docs/xplat.core/requestcodehelper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
