Tag: CodeSearchTree

List invocations in constructor

This example shows how to list the method invocations in a C# file. This is the file that will be read: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { public class MyClass { public MyClass() { Console.WriteLine(“Hello.”); DoSomething(); DoSomethingElse(); } private void DoSomething() { } private void DoSomethingElse() { } […]

Read More

CodeSearchTree use case: Read constant values

For this example, I am using Visual Studio 2015 Community edition to create a console application. ┬áMake sure that you are using .NET Framework 4.6 or later. Let’s say that you have a .cs file with constants that looks something like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MySystem { […]

Read More