예제 #1
0
 public EpsgUnit GetByKey(ushort targetKey)
 {
     return(ReaderLength.GetByKey(targetKey)
            ?? ReaderAngle.GetByKey(targetKey)
            ?? ReaderScale.GetByKey(targetKey)
            ?? ReaderTime.GetByKey(targetKey));
 }
예제 #2
0
 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));
 }