MonoDevelop.Refactoring.Rename.RenameRefactoring.GetFullFileName C# (CSharp) Method

GetFullFileName() static private method

static private GetFullFileName ( string fileName, string oldFullFileName, int tryCount ) : string
fileName string
oldFullFileName string
tryCount int
return string
		static string GetFullFileName (string fileName, string oldFullFileName, int tryCount)
		{
			var name = new StringBuilder (fileName);
			if (tryCount > 0) {
				name.Append ("_");
				name.Append (tryCount.ToString ());
			}
			if (System.IO.Path.HasExtension (oldFullFileName))
				name.Append (System.IO.Path.GetExtension (oldFullFileName));
			
			return System.IO.Path.Combine (System.IO.Path.GetDirectoryName (oldFullFileName), name.ToString ());
		}
	}