Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created February 28, 2011 17:41
Show Gist options
  • Select an option

  • Save gregoryyoung/847690 to your computer and use it in GitHub Desktop.

Select an option

Save gregoryyoung/847690 to your computer and use it in GitHub Desktop.
GO MS GO
for (short i = 1; i <= projectItem.FileCount; i++)
{
var filename = projectItem.FileNames[i];
if (filename != null && filename.ToLower() == path) //SERIOUSLY WTF YOU TOLD ME YOU HAVE ONE AND RETURN ME NULL?
{
return projectItem;
}
}
@JamesTryand
Copy link
Copy Markdown

should that be projectItem.FileNames[i - 1]; ?

@gregoryyoung
Copy link
Copy Markdown
Author

gregoryyoung commented May 19, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment