Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created February 28, 2011 17:41
Show Gist options
  • Save gregoryyoung/847690 to your computer and use it in GitHub Desktop.
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

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

@gregoryyoung
Copy link
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