public static bool IsValid(string value) { Check.Require(value != null, "value must not be null"); string[] strings = value.Split(new string[] { "::" }, 3, StringSplitOptions.RemoveEmptyEntries); if (strings.Length == 0) { return(false); } if (strings.Length != 3) { return(false); } if (!Uid.IsValid(strings[0])) { return(false); } if (!Uid.IsValid(strings[1])) { return(false); } if (!VersionTreeId.IsValid(strings[2])) { return(false); } return(true); }
public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId) : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value) { }