public static RefId GetNamedId(string name) { var retId = RefId.CreateRefId(); retId.SetProperty(nameTag, StringId.CreateStringId(name)); return(retId); }
public static void GiveNameToIId(string name, IId id) { if (!id.IsRefIId()) { throw new Exception("Can only give names to ref IIds"); } id.SetProperty(nameTag, StringId.CreateStringId(name)); }