CompilerGlobalScopeAttribute Constructor ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the CompilerGlobalScopeAttribute class.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public CompilerGlobalScopeAttribute()

The following code example demonstrates how to apply the CompilerGlobalScopeAttribute.

using System;
using System.Runtime.CompilerServices;

class Program
    static void Main(string[] args)
        Console.WriteLine("The attribute was applied.");


.NET Framework
Available since 1.1
Return to top