Class GuidUtilities
Содержит служебные методы для работы со структурой System.Guid.
Inheritance
System.Object
GuidUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class GuidUtilities
Methods
IsEmpty(Guid)
Определяет, является ли System.Guid пустым.
Declaration
public static bool IsEmpty(this Guid source)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | source | Экземпляр структуры System.Guid. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
Метод расширения класса System.Guid.
IsNotEmpty(Guid)
Declaration
public static bool IsNotEmpty(this Guid source)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | source |
Returns
Type | Description |
---|---|
System.Boolean |
IsNullOrEmpty(Nullable<Guid>)
Declaration
public static bool IsNullOrEmpty(this Guid? source)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Guid> | source |
Returns
Type | Description |
---|---|
System.Boolean |
Xor(Guid, Guid)
Generates a deterministic GUID, which is based on XOR operation.
Declaration
public static Guid Xor(this Guid source, Guid guid2)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | source | The first GUID. |
System.Guid | guid2 | The second GUID. |
Returns
Type | Description |
---|---|
System.Guid | Instance of the System.Guid type. |