Optimization

  • /filealign:<size> Specifies the size of sections written to an output file. Can make efficient use of space on smaller devices.

    csc /filealign:512 aProg.cs
    
  • /optimize[+|-] Turns optimization on or off. Optimization is on by default.

    csc /optimize- /debug+ aProg.cs
    

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.