public void SetFileExtension(string extension) { //The parameter extension has a '.' in front of it already. fileExtensionValue = extension; }