private static string GetDataFileName(CharacterClass characterClass, string extension) { var document = characterClass.GetAttributeValue <DataDocumentAttribute, string>(o => o.Document); if (!document.EndsWith(extension)) { document += extension; } return(document); }