Last active
December 11, 2019 13:13
-
-
Save controlflow/e854699c076e02e4a60efd4ceeaaf610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var indexerDeclaration = declaration as IIndexerDeclaration; | |
if (indexerDeclaration != null) | |
{ | |
var arrowClause = indexerDeclaration.ArrowClause; | |
if (arrowClause != null) | |
{ | |
var property = indexerDeclaration.DeclaredElement; | |
if (property != null) | |
{ | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (declaration is IIndexerDeclaration { ArrowClause: { DeclaredElement: {/*notnull*/} property } }) | |
{ | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment