Menu

#133 Need to improve support to C#

open
None
5
2008-03-29
2006-07-02
No

1. support generics

C# 2.0 introduce a new keyword "where" to support
generic class and method. The syntax of generics are
like

class Class1<T> where T: object, new ()
{
public static S Method1<S>()
{
}

public static S Metho2<S> where S: class2
{
}
}

2. recognize verbatim string

if there is a string like this:

private string str1 = @"abc\";

then all the code after this line is treated by ctags
as part of str1, until ctags meet another quote.

3. enum can have a base type

c# enum can have a base type like:

enum Enum1 : byte
{
Value1, Values
}

ctags cannot process it correctly.

Discussion

  • Elliott Hughes

    Elliott Hughes - 2007-05-28

    Logged In: YES
    user_id=1127237
    Originator: NO

    i've committed a fix for problem 2 (verbatim string literals) as revision 525.

     
  • Elliott Hughes

    Elliott Hughes - 2008-03-29

    Logged In: YES
    user_id=1127237
    Originator: NO

    i've committed a fix for problem 3 (derived enums) as revision 651.

     
  • Elliott Hughes

    Elliott Hughes - 2008-03-29
    • assigned_to: nobody --> elliotth
     
  • Elliott Hughes

    Elliott Hughes - 2008-03-29

    Logged In: YES
    user_id=1127237
    Originator: NO

    i've committed a fix for the first part of problem 1 as revision 652: it's now possible to have a generic C# class, though "where" clauses aren't supported.

     

Log in to post a comment.