Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

271
Vistas
What is C# 6.0 #pragma disable warnings feature?

The list of C# 6.0 final features contains a feature called #pragma listed as "Added" and the example is to disable warnings. However this feature did exist in C# before 6.0. What exactly was added in 6.0?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Previously, you had to specify the warning number. So to disable CS0501, you'd use

#pragma warning disable 0501

Now, you can use

#pragma warning disable CS0501

... which is incredibly important when you've got Roslyn Code Analyzers raising warnings with different identifiers. It's basically changed the namespace of warnings from "digits" to "alphanumeric strings".

I don't know the details of the new grammar - I haven't seen a C# 6 spec yet - but the old grammar was:

warning-list:
  decimal-digits
 warning-list whitespaceopt , whitespaceopt decimal-digits

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda