C# Класс MongoDB.Bson.GuidConverter

A static class containing methods to convert to and from Guids and byte arrays in various byte orders.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FromBytes ( byte bytes, GuidRepresentation representation ) : System.Guid

Converts a byte array to a Guid.

ToBytes ( System.Guid guid, GuidRepresentation representation ) : byte[]

Converts a Guid to a byte array.

Описание методов

FromBytes() публичный статический Метод

Converts a byte array to a Guid.
public static FromBytes ( byte bytes, GuidRepresentation representation ) : System.Guid
bytes byte The byte array.
representation GuidRepresentation The representation of the Guid in the byte array.
Результат System.Guid

ToBytes() публичный статический Метод

Converts a Guid to a byte array.
public static ToBytes ( System.Guid guid, GuidRepresentation representation ) : byte[]
guid System.Guid The Guid.
representation GuidRepresentation The representation of the Guid in the byte array.
Результат byte[]