CompilerGlobalScopeAttribute Constructor ()

 

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;

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

    }
}

.NET Framework
Available since 1.1
Return to top
Show: