示例#1
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>();

            if (nidType == NidType.nid_type_hierarchy_table)
            {
                propertyObjectList.Add(new Folder(this, new MockPropBag()));
                propertyObjectList.Add(new Folder(this, new DifferentMockPropBag()));
            }
            else if (nidType == NidType.nid_type_contents_table)
            {
                propertyObjectList.Add(new Message(this, new DifferentMockPropBag()));
                propertyObjectList.Add(new Message(this, new DifferentMockPropBag()));
            }

            return(propertyObjectList);
        }
示例#2
0
 public int GetSubObjectCountByNidType(IPropertyObject parent, NidType nidType)
 {
     return(2);
 }
示例#3
0
 public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
 {
     return(OnGetSubObjectsByNidType());
 }
示例#4
0
        public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType)
        {
            var nodeIdList = new List <NodeID>();

            return(nodeIdList);
        }
示例#5
0
 internal static Nid ChangeType(Nid nid, NidType type) => new Nid(type, nid.Index);
示例#6
0
 public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType)
 {
     return(OnGetNodeIDsByNodeTypeId());
 }
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>();

            return(propertyObjectList);
        }
示例#8
0
 private Nid(NidType type, uint index)
 {
     _value = (uint)type | index << 5;
 }
示例#9
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            List <IPropertyObject> propertyObjectList = new List <IPropertyObject>();

            if (nidType == NidType.nid_type_hierarchy_table)
            {
                propertyObjectList.Add(new Folder(this, 1111));
                propertyObjectList.Add(new Folder(this, 2222));
            }

            return(propertyObjectList);
        }
示例#10
0
 /// <summary>
 /// Construct a node_id (NID) from a node type and index
 /// [MS-PST] 2.2.2.1
 /// </summary>
 public static NodeID make_nid(NidType nid_type, NodeID nid_index)
 {
     return(((UInt32)nid_type & nid_type_mask) | ((nid_index) << 5));
 }
示例#11
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>
            {
                new Message(new MessageMockDBContext(), new MessageMockPropBag()),
                new Message(new MessageMockDBContext(), new MessageMockPropBag())
            };

            return(propertyObjectList);
        }
示例#12
0
文件: Nid.cs 项目: adam-mccoy/pst
 internal static Nid ChangeType(Nid nid, NidType type)
 {
     return new Nid(type, nid.Index);
 }
示例#13
0
文件: Nid.cs 项目: adam-mccoy/pst
 private Nid(NidType type, uint index)
 {
     _value = (uint)type | index << 5;
 }