EasyAF_GuidExtensions

Methods to extend in useful ways.

Syntax

public static class EasyAF_GuidExtensions

Inheritance

Methods

IsNullOrEmpty

public static bool IsNullOrEmpty(this Guid? instance)
A sweet little extension to check if a Nullable Guid has a real value or not.

Parameters

Returns

bool A indicating whether or not the Guid is null or empty.

ToComparableString

public static string ToComparableString(this Guid instance)
A little syntactical sugar to make sure GUIDs are outputted to a format that ensures accurate string comparisons.

Parameters

  • instance Guid: The Guid to convert.

Returns

string An upper-case string representing the GUID instance to be compared.