C# Compiler optimization - Unused methods

后端 未结 4 1076
Happy的楠姐
Happy的楠姐 2020-12-06 10:14

Does C# compiler (in VS2008 or VS2010) remove unused methods while compiling ?

I assume that it may have a problem deciding if public methods will ever be used, so I

4条回答
  •  萌比男神i
    2020-12-06 10:27

    No they won't be removed. It may give you warning for that but won't do it itself.

提交回复
热议问题