[ 
https://issues.apache.org/jira/browse/AVRO-3490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved AVRO-3490.
---------------------------------------------
    Fix Version/s: 1.11.1
         Assignee: Kyle Schoonover
       Resolution: Fixed

> 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
>            Assignee: Kyle Schoonover
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.11.1, 1.12.0
>
>          Time Spent: 0.5h
>  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)

Reply via email to