예제 #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);
        }
예제 #2
0
 public bool TryGetPropNode(PropNameType propertyName, out PropNode propNode)
 {
     if (PropItemsByName.TryGetValue(propertyName, out propNode))
     {
         return(true);
     }
     else
     {
         propNode = null;
         return(false);
     }
 }
예제 #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);
     }
 }
예제 #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);
        }
예제 #5
0
        public IEnumerable <PropNameType> GetPropNames()
        {
            IEnumerable <PropNameType> result = PropItemsByName.Select(x => x.Key);

            return(result);
        }