How to disable a particular compiler warning for a particular file

后端 未结 3 1324
时光取名叫无心
时光取名叫无心 2021-01-17 09:16

Background

I\'m working on a small coding project that is going to be sold to other companies. I needed to create some documentation for it, so I decided to use S

3条回答
  •  伪装坚强ぢ
    2021-01-17 10:14

    If the generated classes should not be visible to your users, you could check if the generation tool has an option to generate the classes as internal rather than public.

    If your generated code is a web service reference, you have an option to specify this when you create the reference (in the "Add Service Reference" dialog, Advanced -> Access level for generated classes).

    Otherwise, you could try to find a way to change automatically the access level of the types in the generated code from public to internal.

提交回复
热议问题