I have the following piece of code:
var paramDeclType = m_semanticModel.GetTypeInfo(paramDecl.Type).Type;
Where paramDeclType.ToString() returns
System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<int>>
I also have the same information from Mono.Cecil - paramDef.ParameterType.FullName returns
System.Collections.Generic.Dictionary`2<System.String,System.Collections.Generic.List`1<System.Int32>>
I would like to compare the type names coming from these two different sources.
I would like to avoid elaborate regex parsing, if possible.
Ideas are welcome.
P.S.
In the meantime, I am going to look for Mono.Cecil replacement from Microsoft - System.Reflection.Metadata. Maybe two libraries from Microsoft would be able to produce compatible type names.