Example #1
0
        public PropNode CreateAndAdd(IPropDataInternal propData_Internal, PropNameType propertyName, BagNode parent)
        {
            PropIdType nextPropId  = GetNextPropId();
            PropNode   newPropNode = new PropNode(nextPropId, propData_Internal, parent);

            Add(newPropNode);
            return(newPropNode);
        }
Example #2
0
        public PropNode(PropIdType propId, IPropDataInternal propData_Internal, BagNode parent)
        {
            CompKey           = new SimpleExKey(parent.ObjectId, propId);
            PropData_Internal = propData_Internal ?? throw new ArgumentNullException(nameof(propData_Internal));

            //parent.AddChild(this);
            Parent = parent;

            Child = null;
        }
Example #3
0
 private bool TryGetDataFromProp(WeakReference <PSAccessServiceInternalInterface> storeAccessor_wr, PropIdType propId, out object data)
 {
     if (storeAccessor_wr.TryGetTarget(out PSAccessServiceInternalInterface storeAccessor))
     {
         PropNode          propNode       = storeAccessor.GetChild(propId);
         IPropDataInternal propDataHolder = propNode.PropData_Internal;
         IProp             typedProp      = propDataHolder.TypedProp;
         data = typedProp.TypedValueAsObject;
         return(true);
     }
     else
     {
         data = null;
         return(false);
     }
 }
 public PropNode CreateAndAdd(IPropDataInternal propData_Internal, PropNameType propertyName, BagNode parent)
 {
     throw new InvalidOperationException("Cannot Add PropItems to a Fixed PropItemSet.");
 }