C# 如何在c中将字符串转换为Cassandra.TimeUuid#

C# 如何在c中将字符串转换为Cassandra.TimeUuid#,c#,cassandra,datastax,C#,Cassandra,Datastax,我正在使用c#中的Cassandra数据库。我有一个用户表,它的UserId列为TimeUuid类型。现在的场景是,我必须在第三方库的方法中将UserId作为字符串参数传递。在这个方法中,我必须将这个字符串转换成Cassandra.TimeUuid 如何将此字符串转换为Cassandra.TimeUuid 谢谢当前从字符串创建TimeUuid实例的唯一方法是: TimeUuid time = (TimeUuid) Guid.Parse(value); 多亏了我 这不是很直观,所以我创建了一个。

我正在使用c#中的Cassandra数据库。我有一个用户表,它的UserId列为
TimeUuid
类型。现在的场景是,我必须在第三方库的方法中将UserId作为字符串参数传递。在这个方法中,我必须将这个字符串转换成
Cassandra.TimeUuid

如何将此字符串转换为Cassandra.TimeUuid


谢谢

当前从字符串创建
TimeUuid
实例的唯一方法是:

TimeUuid time = (TimeUuid) Guid.Parse(value);
多亏了我


这不是很直观,所以我创建了一个。

当前从字符串创建
TimeUuid
实例的唯一方法是:

TimeUuid time = (TimeUuid) Guid.Parse(value);
多亏了我

这不是很直观,所以我创建了一个