[ https://issues.apache.org/jira/browse/AVRO-3490?focusedWorklogId=760274&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-760274 ]
ASF GitHub Bot logged work on AVRO-3490: ---------------------------------------- Author: ASF GitHub Bot Created on: 21/Apr/22 18:19 Start Date: 21/Apr/22 18:19 Worklog Time Spent: 10m Work Description: martin-g merged PR #1644: URL: https://github.com/apache/avro/pull/1644 Issue Time Tracking ------------------- Worklog Id: (was: 760274) Time Spent: 20m (was: 10m) > Fix IDE0016 Use throw expression > -------------------------------- > > Key: AVRO-3490 > URL: https://issues.apache.org/jira/browse/AVRO-3490 > Project: Apache Avro > Issue Type: Sub-task > Components: csharp > Reporter: Kyle Schoonover > Priority: Minor > Labels: pull-request-available > Fix For: 1.12.0 > > Time Spent: 20m > Remaining Estimate: 0h > > {code:java} > // csharp_style_throw_expression = true > this.s = s ?? throw new ArgumentNullException(nameof(s)); > // csharp_style_throw_expression = false > if (s == null) { throw new ArgumentNullException(nameof(s)); } > this.s = s; {code} > For reference: [IDE0016: Use throw expression - .NET | Microsoft > Docs|https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0016] -- This message was sent by Atlassian Jira (v8.20.7#820007)