c# - Can't use FileFormatException (?) -


I am currently writing a custom importer for my small XNA project and for the importer import Method

I have referred to WindowsBase.dll , so the FileFormatException should be available under the system. IO in IntelliSense, right? I type System.IO and there is no autocomplete with System.IO under FormFormatException .

Statement is located:

  Namespoten Tetrominoemporter {public class Tetrominovider: Content emporter & lt; Tetromano & gt; {Public prong block block filename = "blocks.txt"; Public override tetrovineoin import (string filename, content importer contact reference) {// here    

You need to include WindowsBase in your references, as fileFormatException is defined in that assembly. Once you add it, you get the system. IOfile Format Expansion should be able to solve

Comments

Post a Comment

Popular posts from this blog

php - How to filter values fetched from database on the basic of comma included? -

excel vba - How to delete Solver(SOLVER.XLAM) code -

c# - Add Image in a stackpanel based on textbox input -