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