I am currently writing a custom importer for my small XNA project and trying to do something as simple as throwing a FileFormatException into my Import importer method.
I referenced WindowsBase.dll , so FileFormatException should be available under System.IO in IntelliSense, right? I am typing System.IO and there is no autocomplete with FileFormatException under System.IO .
Here's the throw statement:
namespace TetrominoImporter { public class TetrominoReader : ContentImporter<Tetromino> { public const string blockFileName = "blocks.txt"; public override Tetromino Import(string filename, ContentImporterContext context) {
c # exception xna
Toto
source share