Skip to content

Instantly share code, notes, and snippets.

Created Aug 5, 2020
What would you like to do?
if (declaredElement is ITypeElement && !(declaredElement is IDelegate))
return false;
if (declaredElement is IFunction && !(declaredElement is IMethod) || declaredElement is ILabel || declaredElement is INamespace)
return false;
if (declaredElement is ITypeElement and not IDelegate)
return false;
if (declaredElement is (IFunction and not IMethod) or ILabel or INamespace)
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment