Ejemplo n.º 1
0
 public static void AddNameSpaceChild(IId parentId, IId childId)
 {
     if(!parentId.ContainsProperty(nsChildren))
     parentId.SetProperty(nsChildren,DfSet.CreateSet());
       var set = parentId.GetProperty(nsChildren);
       DfSet.AddToSet(set,childId);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
        public static void AddNameSpaceChild(IId parentId, IId childId)
        {
            if (!parentId.ContainsProperty(nsChildren))
            {
                parentId.SetProperty(nsChildren, DfSet.CreateSet());
            }
            var set = parentId.GetProperty(nsChildren);

            DfSet.AddToSet(set, childId);
        }
Ejemplo n.º 4
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);
     }
 }
Ejemplo n.º 5
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));
 }