what's the differences between *`1.cs and *.cs?

Topics: General Topics, SharpMap v2.0
Jul 22, 2008 at 9:15 AM

I download the source code of sharpmap from svn.
And there are many  class file named  like "*`1.cs".
what is the special meaning of the symbol "`1.cs"?
what's the differences between *`1.cs and *.cs?
eg. ICoordinateSystem`1.cs and ICoordinateSystem.cs
    ICoordinate`1.cs and ICoordinate.cs which is included in GeoAPI.Net v2.0 branches.

thanks for any reply.
Coordinator
Jul 22, 2008 at 9:41 AM
hi phdbrianlee, `1 would mean a generic class with one type param, `2 would mean two type params etc.. note that depending on the source control mechanism renaming files can be difficult so sometimes the filenames no longer match the actual number of params.. hth jd
Jul 22, 2008 at 10:07 AM


JohnDiss wrote:
hi phdbrianlee, `1 would mean a generic class with one type param, `2 would mean two type params etc.. note that depending on the source control mechanism renaming files can be difficult so sometimes the filenames no longer match the actual number of params.. hth jd

Thanks for your reply.
eg. ICoordinate`1.cs and ICoordinate.cs
Will the interface ICoordinate defined in these two file coexist for a long time?
or the generic class will replace its alternative in the end?
When someone reference the interface, he may got confused.
Coordinator
Jul 22, 2008 at 12:18 PM
Hi phdbrianlee, they will both exist for 'all' time, the generic version implements the non-generic version. Classes will often demand the non-generic version and accept the specialized version. hth jd