Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft