Created
August 2, 2016 19:06
-
-
Save jcansdale/b652f32617cca854b444191bafa13a45 to your computer and use it in GitHub Desktop.
This file contains 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
static string getNamePreserveCase(EnvDTE.Document doc) | |
{ | |
var name = doc.Name; | |
var fullName = doc.ProjectItem.FileNames[0]; | |
name = fullName.Substring(fullName.Length - name.Length, name.Length); | |
return name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment