Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you determine the original .NET language from the compiled assembly?

Tags:

c#

.net

vb.net

Is there a way to determine the language in which an assembly was originally written? I was considering looking at the referenced assemblies or something similar but wondered if it's as simple as a specific assembly attribute or such...

like image 297
plyawn Avatar asked Nov 29 '10 19:11

plyawn


1 Answers

There is no specific attribute. Just hints. If you see an assembly reference to Microsoft.VisualBasic then the odds are high that it was written in VB.NET. If you see a <CppImplementationDetails> class then it was written in C++/CLI. Absence of these hints makes C# likely. Ignoring the possibilities of a Mono assembly or the dozens of language ports to .NET

like image 174
Hans Passant Avatar answered Nov 15 '22 16:11

Hans Passant