public float GetWidth(FilmSizeUnit desiredUnit) { if (_sizeUnit == desiredUnit) { return(_width); } return(desiredUnit == FilmSizeUnit.Inch ? ConvertToInches(_width) : ConvertToCentimeters(_width)); }
public float GetHeight(FilmSizeUnit desiredUnit) { if (_sizeUnit == desiredUnit) { return(_height); } return(desiredUnit == FilmSizeUnit.Inch ? ConvertToInches(_height) : ConvertToCentimeters(_height)); }