Recently, I have been developing a Vb.Net application, and I try to make it as easy as possible (i.e. make binary files as small as possible).
I did all the trivial things, but while looking at the binary using ILDasm , I noticed that it has My namespace , with many methods, although I do not use any of them in my program, It seems that there are default methods for each form Get/Set and other methods.
Is there any way to get rid of them?
Or can you show me an example of using default binary related methods?
PS : I think it will not matter much in binary size: I just ask about it out of curiosity; why does the compiler bind useless methods in each binary? Perhaps I will find out that these methods are actually used somewhere under the hood.
PPS : here is a minimal example:
Module Test Sub Main() End Sub End Module
Output: 
source share