BinaryWriter has no constructor that takes 0 parameters. You must provide some parameters that match one of the three overloads.