How to suppress CS0402 for a method RRS feed

  • Question

  • I want to suppress the CS0402 warning but to do that I must pass the "catgeory" arg to the constructor of the SuppressMessage attribute.

    The docs for CS0402 shed no light on what the category is.

    Does anyone know?


    Tuesday, February 6, 2018 6:49 PM

All replies

  • Hello,

    For anyone who wants to assist you it would be a good idea to show the code.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Tuesday, February 6, 2018 7:35 PM
  • Hi Captain Kernel,

    Any update for your code?

    Here is the MSDN document about CS0402 for your reference.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, March 7, 2018 5:24 AM