Example #1
0
        public IReadOnlyDictionary <PropNameType, IPropData> GetPropDataItemsDict()
        {
            ReadOnlyDictionary <PropNameType, IPropData> result =
                new ReadOnlyDictionary <PropNameType, IPropData>(PropItemsByName.ToDictionary(x => x.Key, x => (IPropData)x.Value.PropData_Internal));

            return(result);
        }
Example #2
0
 public bool TryGetPropNode(PropNameType propertyName, out PropNode propNode)
 {
     if (PropItemsByName.TryGetValue(propertyName, out propNode))
     {
         return(true);
     }
     else
     {
         propNode = null;
         return(false);
     }
 }
Example #3
0
 public bool TryGetPropId(PropNameType propertyName, out PropIdType propId)
 {
     if (PropItemsByName.TryGetValue(propertyName, out PropNode propNode))
     {
         propId = propNode.PropId;
         return(true);
     }
     else
     {
         propId = PropIdType.MaxValue;
         return(false);
     }
 }
Example #4
0
        public IEnumerable <KeyValuePair <PropNameType, IPropData> > GetPropDataItemsWithNames()
        {
            IEnumerable <KeyValuePair <PropNameType, IPropData> > result = PropItemsByName.Select(kvp => new KeyValuePair <PropNameType, IPropData>(kvp.Key, kvp.Value.PropData_Internal));

            return(result);
        }
Example #5
0
        public IEnumerable <PropNameType> GetPropNames()
        {
            IEnumerable <PropNameType> result = PropItemsByName.Select(x => x.Key);

            return(result);
        }