C# Guid Guid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
Description
Guid Guid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte,
Byte, Byte, Byte)
initializes a new instance of the Guid structure
by using the specified integers and bytes.
Syntax
Guid.Guid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
has the following syntax.
public Guid(/* ww w . j a va 2 s . com*/
int a,
short b,
short c,
byte d,
byte e,
byte f,
byte g,
byte h,
byte i,
byte j,
byte k
)
Parameters
Guid.Guid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
has the following parameters.
a
- The first 4 bytes of the GUID.b
- The next 2 bytes of the GUID.c
- The next 2 bytes of the GUID.d
- The next byte of the GUID.e
- The next byte of the GUID.f
- The next byte of the GUID.g
- The next byte of the GUID.h
- The next byte of the GUID.i
- The next byte of the GUID.j
- The next byte of the GUID.k
- The next byte of the GUID.
Example
/* www .j a v a 2 s. co m*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(new Guid(0xa,0xb,0xc,0,1,2,3,4,5,6,7) );
}
}
The code above generates the following result.