# Field Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.wireprotocol.field/)

## EnsureWireType(WireType) {#ensurewiretype-orleans-serialization-wireprotocol-wiretype-ceefaceb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.wireprotocol.field/methods/ensurewiretype-orleans-serialization-wireprotocol-wiretype-ceefaceb/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/WireProtocol/Field.cs#L242-L244)

```csharp
public void EnsureWireType(WireType expectedType)
```

Ensures that the wire type is supported.

### Parameters

- `expectedType` (`WireType`)

## EnsureWireTypeTagDelimited {#ensurewiretypetagdelimited-8e7f9233}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.wireprotocol.field/methods/ensurewiretypetagdelimited-8e7f9233/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/WireProtocol/Field.cs#L230-L232)

```csharp
public void EnsureWireTypeTagDelimited()
```

Ensures that the wire type is [WireType](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.wireprotocol.wiretype/).

## ToString {#tostring-8fb893be}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.wireprotocol.field/methods/tostring-8fb893be/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/WireProtocol/Field.cs#L252-L281)

```csharp
public override string ToString()
```

Returns the fully qualified type name of this instance.

### Returns

The fully qualified type name.
