/// <summary> /// valida o GUID passado /// </summary> /// <param name="guid">GUID a ser validade</param> /// <returns>true se o guid for válido</returns> public static bool IsValid(GUID guid) { return(!IsNullOrEmpty(guid)); }
/// <summary> /// Retorna true se o GUID for válido /// </summary> /// <returns></returns> public bool IsValid() { return(GUID.IsValid(this)); }
/// <summary> /// Retorna true se o GUID informado for nulo ou vazio /// </summary> /// <param name="guid">GUID que deverá ser comparado</param> /// <returns></returns> public static bool IsNullOrEmpty(GUID guid) { return(guid == null || guid == GUID.Empty); }