Пример #1
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));
 }
Пример #2
0
 private void UnMark(IId target, IId isStreaming)
 {
     if (!target.IsRefIId())
     {
         return;
     }
     if (!target.ContainsProperty(isStreaming))
     {
         return;
     }
     target.RemoveProperty(isStreaming);
 }
Пример #3
0
 private void AddIdAndMark(IId target, List <string> acc, IId isStreaming)
 {
     if (!target.IsRefIId())
     {
         return;
     }
     if (target.ContainsProperty(isStreaming))
     {
         return;
     }
     acc.Add(target.GetFullPropertyDescription());
     target.SetProperty(isStreaming, isStreaming);
     foreach (var propertiesAndValue in target.GetPropertiesAndValues().Where(o => o != isStreaming))
     {
         AddIdAndMark(propertiesAndValue, acc, isStreaming);
     }
 }
Пример #4
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));
 }