private static string GetOfficialRating(ChannelParentalRating rating) { return(rating switch { ChannelParentalRating.Adult => "XXX", ChannelParentalRating.UsR => "R", ChannelParentalRating.UsPG13 => "PG-13", ChannelParentalRating.UsPG => "PG", _ => null });
private string GetOfficialRating(ChannelParentalRating rating) { switch (rating) { case ChannelParentalRating.Adult: return "XXX"; case ChannelParentalRating.UsR: return "R"; case ChannelParentalRating.UsPG13: return "PG-13"; case ChannelParentalRating.UsPG: return "PG"; default: return null; } }
private static string GetOfficialRating(ChannelParentalRating rating) { switch (rating) { case ChannelParentalRating.Adult: return("XXX"); case ChannelParentalRating.UsR: return("R"); case ChannelParentalRating.UsPG13: return("PG-13"); case ChannelParentalRating.UsPG: return("PG"); default: return(null); } }