Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal a As Integer, _ ByVal b As Short, _ ByVal c As Short, _ ByVal d As Byte, _ ByVal e As Byte, _ ByVal f As Byte, _ ByVal g As Byte, _ ByVal h As Byte, _ ByVal i As Byte, _ ByVal j As Byte, _ ByVal k As Byte _ ) |
C# | |
---|---|
public DbGuid( int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k ) |
Parameters
- a
- b
- c
- d
- e
- f
- g
- h
- i
- j
- k
Library/Library.Test/TestDbGuid.cs
C# | Copy Code |
---|---|
DbGuid testA = new DbGuid(0x01020304, 0x0506, 0x0708, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80); Guid testB = new Guid(0x01020304, 0x0506, 0x0708, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80); Assert.AreEqual(testB, testA.ToGuid()); |
VB.NET | Copy Code |
---|---|
Dim testA As New DbGuid(&H1020304, &H506, &H708, &H10, &H20, &H30, _ &H40, &H50, &H60, &H70, &H80) Dim testB As New Guid(&H1020304, &H506, &H708, &H10, &H20, &H30, _ &H40, &H50, &H60, &H70, &H80) Assert.AreEqual(testB, testA.ToGuid()) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7