public static MakeAbsolute ( string relativePath, bool forceAsContent ) : string | ||
relativePath | string | The path to make absolute. |
forceAsContent | bool | Whether to force as content - can be passed as true if the file should be treated as content despite its extension. |
return | string |
public static string MakeAbsolute(string relativePath, bool forceAsContent)
{
if (FileManager.IsRelative(relativePath))
{
if ((forceAsContent || IsContent(relativePath)))
{
return !relativePath.StartsWith(ContentDirectoryRelative)
? ContentProject.MakeAbsolute(ContentDirectoryRelative + relativePath)
: ContentProject.MakeAbsolute(relativePath);
}
else
{
return ProjectBase.MakeAbsolute(relativePath);
}
}
return relativePath;
}
ProjectManager::MakeAbsolute ( string relativePath ) : string |
internal static List <string> GetMemberNamesFrom(ReferencedFileSave rfs) { List <string> toReturn = new List <string>(); string fileName = rfs.Name; fileName = ProjectManager.MakeAbsolute(fileName); RuntimeCsvRepresentation rcr = CsvFileManager.CsvDeserializeToRuntime( fileName); for (int i = 0; i < rcr.Headers.Length; i++) { string memberName = rcr.Headers[i].Name; if (memberName.Trim().StartsWith("//")) { continue; } memberName = StringFunctions.RemoveWhitespace(memberName); if (memberName.Contains("(")) { memberName = memberName.Substring(0, memberName.IndexOfAny(new char[] { '(' })); } toReturn.Add(memberName); } return(toReturn); }