示例#1
0
        public object GetValue(AircraftProperty property)
        {
            switch (property)
            {
            case AircraftProperty.TailNumber:
                return(TailNumber);

            case AircraftProperty.Make:
                return(Make);

            case AircraftProperty.Model:
                return(Model);

            case AircraftProperty.Category:
                return(Category);

            case AircraftProperty.Classification:
                return(Classification);

            case AircraftProperty.IsComplex:
                return(IsComplex);

            case AircraftProperty.IsHighPerformance:
                return(IsHighPerformance);

            case AircraftProperty.IsTailDragger:
                return(IsTailDragger);

            case AircraftProperty.IsSimulator:
                return(IsSimulator);

            case AircraftProperty.Notes:
                return(Notes);

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
示例#2
0
 set => SetValue(AircraftProperty, value);