This file contains hidden or 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
| A collection of snippets |
This file contains hidden or 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
| #pragma once | |
| #include <algorithm> | |
| #include <array> | |
| template <class T, size_t N> | |
| class CircularArray { | |
| public: | |
| CircularArray() {} | |
| CircularArray(const T initValue) { std::fill_n(data_.begin(), data_.size(), initValue); } |
This file contains hidden or 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
| class ReferenceFinder | |
| { | |
| public void Find(string methodName) | |
| { | |
| string solutionPath = @"C:\Users\achoudhary\Documents\Visual Studio 2013\Projects\ConsoleForEverything\ConsoleForEverything.sln"; | |
| var msWorkspace = MSBuildWorkspace.Create(); | |
| List<ReferencedSymbol> referencesToMethod = new List<ReferencedSymbol>(); | |
| Console.WriteLine("Searching for method \"{0}\" reference in solution {1} ", methodName, Path.GetFileName(solutionPath)); |