Menu

#116 Quick fix for CS0535 inserts the method in the wrong place

closed
None
5
2008-01-23
2008-01-15
No

Create a C# source file with the contents below...

public interface ImplementThis
{
void X();
}

public class ImplementingClass : ImplementThis
{

}

...and then invoke a build. There will be a marker created on 'ImplementingClass' for CS0535 that tells the user that the class needs to implement the ImplementThis's X() member. Invoke quick fix and add the method. You will now get the following...

public interface ImplementThis
{
void X();
}

public class ImplementingClass : ImplementThis
{

}
public void X(){
// TODO: Auto-generated Stub

}

...as you can see, the X() method is created in the wrong place.

Discussion

  • Bernhard Brem

    Bernhard Brem - 2008-01-16
    • assigned_to: nobody --> bernhardbrem
     
  • Bernhard Brem

    Bernhard Brem - 2008-01-16

    Logged In: YES
    user_id=1245734
    Originator: NO

    Grrr.... A code parsing storry, again :-(

     
  • Bernhard Brem

    Bernhard Brem - 2008-01-23
    • status: open --> closed
     
  • Bernhard Brem

    Bernhard Brem - 2008-01-23

    Logged In: YES
    user_id=1245734
    Originator: NO

    Fixed in CVS

     

Log in to post a comment.

MongoDB Logo MongoDB