GuidGeneratorParameters - Leo-Corporation/LeoCorpLibrary GitHub Wiki

Table of content


Introduction

To use this class in your project you must include this line of code on top of your code file:

C#

using LeoCorpLibrary;

VB

Imports LeoCorpLibrary

Note: This class doesn't have any methods.

This class is available in version 2.2 and higher.

Compatibility
Framework LeoCorpLibrary LeoCorpLibrary.Core
.NET 5
.NET Core 3.1
.NET Framework 4.7.2
.NET Framework 4.5

Properties

Lenght

Value int

The length of the generated Guid. Example:

If Lenght = 15:
0d7d75295da745f

Go to top

UseUpperCaseOnly

Value bool

If set to true, the generated Guid will be only in upper case. If set to false, the Guid will be only in lower case. Example:

If true:
EF634CE7-CF29-4190-8185-F6A2BE71798A

If false:
6eeb2cfc-ef07-47e6-9813-2ea9ce22fb4a

Go to top

WithBraces

Value bool

If set to true, the generated Guid will have braces, example:

{9be1663c-0be6-4ae5-a34e-b877dfb00272}

Go to top

WithHyphens

Value bool

If set to true, the generated Guid will have hyphens. If set to false, the generated Guid won't have any hyphens. Example:

If true
379fd196-8896-4120-9055-191cd4314827

If false
0d7d75295da745f1b25d98ee0c862a10

Go to top

⚠️ **GitHub.com Fallback** ⚠️