I have a reference to the type and class from certain assembly.
var type = typeof(SomeNamespace.SomeClass);
Is there a way to get meta about what programming language were used to write this class? C# or VB or F#?
So in result i want something like this
var programmingLanguage = getLanguage(type); // C#
UPD:
Can I analyze what Assemblies or Namespaces where used for this class? Maybe this can be a clue to finding out a language?
UPD2:
So far I could use this ( it's just an example for VB detection )
var referenced = type.Assembly.GetReferencedAssemblies()
.Where((r) => r.Name.Contains("VisualBasic"));
VB adds Microsoft.VisualBasic. F# also adds it's own assemblies and C++ declares a lot of 'self use' types which I can detect. So this is "a way". I know it's not error prone. And there will be some false cases. So is there anything better?