Loading files
using System.Collections.Generic;
using System.Linq;
namespace ICSharpCode.Decompiler.CSharp.Syntax;
public static class SyntaxTreeExtensions
{
public static IEnumerable<TypeDeclaration> GetAllTypeDeclarations(this SyntaxTree syntaxTree) =>
syntaxTree.GetTypes(includeInnerTypes: true).Where(type => type is TypeDeclaration).Cast<TypeDeclaration>();
}
a4519e7a0This file is pinned to the selected release. Download the original to open it in your design tool.