posting C# code with generics

Last post 05-16-2008 11:12 AM by vcsjones. 1 replies.

Sort Posts:

  • posting C# code with generics

    05-15-2008, 3:12 PM
    • Loading...
    • profnachos
    • Joined on 12-15-2004, 7:06 PM
    • Posts 79
    When I post code using the source code tool, the < and > brackets disappear. For example,
    		List<MyClass> list = new List<MyClass>();
    becomes
    		List list = new List();
    Someone has probably noted it already.   
     

     

  • Re: posting C# code with generics

    05-16-2008, 11:12 AM
    Answer
    • Loading...
    • vcsjones
    • Joined on 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 3,976
    • Moderator
      TrustedFriends-MVPs

    Yeah, this issue has been brought up a few times... the only thing you can do now is not use the code editor if you code has a < character in it (it sometimes screws up the same way with a less than operator, like for (int i = 0; i<5;i++) .

    The other option is to use the code editor, then edit the HTML manually to fix it by clicking the HTML image:

    Cheers,
           Kevin Jones


Page 1 of 1 (2 items)