--- Matej Urbas <[EMAIL PROTECTED]> escribió: > Hi > > I'm working on code completion (generics support) in > MonoDevelop and I'm > making extensive use of Mono.Cecil. > > I have a few questions about the way Mono.Cecil > decorates full names of > generic types: > > 1. All generic types have such a string appended to > their full name: > "`#" - where # represents the number of generic > parameters. Is this a > standard way of decorating generic names? If it is, > can you point me to > a document that specifies this? (I need it mostly > because I'm > interested, but I also expect to be using it when > extracting undecorated > names for code completion in monodevelop.)
Decorating generic types with a grave (`) and the number of generic parameters is the way the CLI represents generic types, so we could have: Func<A> => Func`1<A> Func<A, B> => Func`2<A, B> because the runtime imposes that all types must have different names. It is well documented in the ECMA Standard papers for the CLI. Hope this helps, Alejandro Serrano ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list