3 using System.Globalization;
9 public readonly UInt64
Value;
16 private const string Prefix =
"STEAM_WORKSHOP_";
20 public override bool Equals(
object? obj)
25 public new static Option<SteamWorkshopId>
Parse(
string s)
27 if (s.StartsWith(Prefix)) { s = s[Prefix.Length..]; }
28 if (!UInt64.TryParse(s, out var
id) ||
id == 0) {
return Option<SteamWorkshopId>.None(); }
override bool Equals(object? obj)
override string StringRepresentation
SteamWorkshopId(UInt64 value)
static new Option< SteamWorkshopId > Parse(string s)
override int GetHashCode()