[ 
https://issues.apache.org/jira/browse/AVRO-3491?focusedWorklogId=758751&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-758751
 ]

ASF GitHub Bot logged work on AVRO-3491:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Apr/22 18:40
            Start Date: 19/Apr/22 18:40
    Worklog Time Spent: 10m 
      Work Description: martin-g merged PR #1645:
URL: https://github.com/apache/avro/pull/1645




Issue Time Tracking
-------------------

    Worklog Id:     (was: 758751)
    Time Spent: 0.5h  (was: 20m)

> Fix IDE0020 Use pattern matching to avoid 'is' check followed by a cast
> -----------------------------------------------------------------------
>
>                 Key: AVRO-3491
>                 URL: https://issues.apache.org/jira/browse/AVRO-3491
>             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: 0.5h
>  Remaining Estimate: 0h
>
> {code:java}
> // csharp_style_pattern_matching_over_is_with_cast_check = true
> if (o is int i) {...}
> // csharp_style_pattern_matching_over_is_with_cast_check = false
> if (o is int) {var i = (int)o; ... } {code}
> For Reference: [Use pattern matching to avoid 'is' check followed by a cast 
> (IDE0020 and IDE0038) - .NET | Microsoft 
> Docs|https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0020-ide0038]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to