Hello Friends,
Now I am going to describe What is GUID and how to generate Custom GUID in .net using C#,I hope it will be helpful for beginner.
GUID: It is stands for Global Unique Identifier.It is 128-bit int(16 bytes).Dot net framework is used System.GUID class to represent the GUID by the help of Guid.NewGuid() method.
Console Application:
using System;
namespace ConsoleApp1
{
internal class Program
{
private static void Main(string[] args)
{
Guid obj = Guid.NewGuid();
Console.WriteLine("New Guid is :" + obj.ToString());
Console.ReadLine();
}
}
}
OutPut:Press F5
New Guid is :ce21285a-61ff-4bb5-b006-6c0cf5287f28
In this session I’ve explained how to generate GUID in .net application. So after read please Comments and suggestions.Thanks & Regard
Rabi
Now I am going to describe What is GUID and how to generate Custom GUID in .net using C#,I hope it will be helpful for beginner.
GUID: It is stands for Global Unique Identifier.It is 128-bit int(16 bytes).Dot net framework is used System.GUID class to represent the GUID by the help of Guid.NewGuid() method.
Console Application:
- Create a console application ,write below code and press F5 to run this console application.
using System;
namespace ConsoleApp1
{
internal class Program
{
private static void Main(string[] args)
{
Guid obj = Guid.NewGuid();
Console.WriteLine("New Guid is :" + obj.ToString());
Console.ReadLine();
}
}
}
OutPut:Press F5
New Guid is :ce21285a-61ff-4bb5-b006-6c0cf5287f28
In this session I’ve explained how to generate GUID in .net application. So after read please Comments and suggestions.Thanks & Regard
Rabi