Example #1
0
        public static RefId GetNamedId(string name)
        {
            var retId = RefId.CreateRefId();

            retId.SetProperty(nameTag, StringId.CreateStringId(name));
            return(retId);
        }
Example #2
0
 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));
 }