Kyle Schoonover created AVRO-3490:
-------------------------------------
Summary: 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
Fix For: 1.12.0
{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.1#820001)