> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Guid

> Extension methods for Guid from System.Runtime

## Definition

**Assembly:** System.Runtime.dll

**Namespace:** System

## Syntax

```csharp theme={"dark"}
System.Guid
```

## Summary

This type is defined in System.Runtime.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/system.guid) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> ToComparableString <Badge color="green">Extension</Badge>

<Note>Extension method from `System.EasyAF_GuidExtensions`</Note>

A little syntactical sugar to make sure GUIDs are outputted to a format that ensures accurate string comparisons.

#### Syntax

```csharp theme={"dark"}
public static string ToComparableString(System.Guid instance)
```

#### Parameters

| Name       | Type          | Description          |
| ---------- | ------------- | -------------------- |
| `instance` | `System.Guid` | The Guid to convert. |

#### Returns

Type: `string`
An upper-case string representing the GUID instance to be compared.

#### Remarks

See [https://msdn.microsoft.com/en-us/library/bb386042.aspx](https://msdn.microsoft.com/en-us/library/bb386042.aspx) for more details.
