C# 클래스 MongoDB.Bson.GuidConverter

A static class containing methods to convert to and from Guids and byte arrays in various byte orders.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
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[]