Re: Are compiler #Pragma equivalents supported in C#?
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 06/14/04
- Next message: John Mark Howell: "View a WinWord Doc in a WinForm"
- Previous message: Maksim Chepel: ""Cannot control <service name> service on computer '.' " using ServiceController..."
- In reply to: Gary James: "Are compiler #Pragma equivalents supported in C#?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Jun 2004 14:04:15 -0400
Gary,
Pragma statements are not part of the C# language. However, you can
suppress the warning options through the /nowarn flag (if using CSC on the
command line). This allows you to specify which warnings to not have
appear.
Also, you can set the properties on the project to ignore these
warnings, by going to the properties for the project, and then going to
"Configuration Properties | Build". There is a property "Suppress Specific
Warnings" which you want to set to the warnings you want to suppress.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Gary James" <garyj@iotech.com> wrote in message
news:OuQklhjUEHA.1012@TK2MSFTNGP09.phx.gbl...
> I'm looking for a way to suppress the CS0659 compiler warning message
about
> class overrides Equals but does not provide a GetHashCode() override. In
> C++ VS allows this through the use of the #Pragma statement. Does VS.NET
> have the equivalent?
>
> Gary ...
>
- Next message: John Mark Howell: "View a WinWord Doc in a WinForm"
- Previous message: Maksim Chepel: ""Cannot control <service name> service on computer '.' " using ServiceController..."
- In reply to: Gary James: "Are compiler #Pragma equivalents supported in C#?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|