none
Compiler warning when no other partial class is defined RRS feed

  • Question

  •  

    Does anyone know whether there is a compiler warning that can be turnned on when only one definition is found for a partial class? (I want to _assurre_ that at least two partial class definitions exist in the code files compiled to an assembly)

     

    Thanks,

    Andrew

    Thursday, September 7, 2006 9:45 PM

Answers

  • No - there isn't a warning for this.  The language feature is intended to allow any number of parts, and not to enforce a certain number, so we don't provide a warning for this case.

    Thanks,
    Luke Hoban
    Visual C# Compiler Program Manager

    Monday, September 11, 2006 10:43 PM
    Moderator