Skip to content

Instantly share code, notes, and snippets.

@SimonCropp
Created May 9, 2012 12:12
Show Gist options
  • Select an option

  • Save SimonCropp/2644075 to your computer and use it in GitHub Desktop.

Select an option

Save SimonCropp/2644075 to your computer and use it in GitHub Desktop.
//the first context will be skipped in the foreach because the enumeration will be moved forward 1 by the allContexts.First(). Is this intentional
private string GetDestPath(ResolutionContext context)
{
var allContexts = GetContexts(context).Reverse();
var builder = new StringBuilder(allContexts.First().DestinationType.Name);
foreach (var ctxt in allContexts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment