Author Topic: When will EA supports C# 2.0  (Read 3640 times)

smartkid

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
When will EA supports C# 2.0
« on: August 06, 2005, 03:51:33 pm »
Currently, EA does not support generics in C#2.0

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: When will EA supports C# 2.0
« Reply #1 on: August 07, 2005, 05:50:20 pm »
What do you think it doesn't support?  Support for C# 2.0 was added in version 4.5.

smartkid

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: When will EA supports C# 2.0
« Reply #2 on: August 07, 2005, 10:22:36 pm »
The generic types of generic methods lost in importing.

For example:

when a method is declared as:

public void MyMethod<T>()

The generic type T is lost when importing.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: When will EA supports C# 2.0
« Reply #3 on: August 08, 2005, 03:14:52 pm »
It's added as a tagged value to the method.

Simon

smartkid

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: When will EA supports C# 2.0
« Reply #4 on: August 08, 2005, 10:37:31 pm »
Write a very simple class like:

public class MyClass {

public void MyMethod() { }

public void MyMethod<T>() { }

}

and reverse engineering to the model.

The two methods look no difference and I cannot find any "tag value".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: When will EA supports C# 2.0
« Reply #5 on: August 09, 2005, 03:19:40 pm »
Open the tagged values window. (View | Other Windows | Tagged Values)

Click on your generic method.

It will list a tagged value. "generic" = "<T>".

Simon