public EpsgUnit GetByKey(ushort targetKey) { return(ReaderLength.GetByKey(targetKey) ?? ReaderAngle.GetByKey(targetKey) ?? ReaderScale.GetByKey(targetKey) ?? ReaderTime.GetByKey(targetKey)); }
public IEnumerable <EpsgUnit> ReadAllValues() { Contract.Ensures(Contract.Result <IEnumerable <EpsgUnit> >() != null); return(ReaderTime.ReadAllValues() .Concat(ReaderLength.ReadAllValues()) .Concat(ReaderAngle.ReadAllValues()) .Concat(ReaderScale.ReadAllValues()) .OrderBy(x => x.Code)); }