Table of Contents

Class InternalsVisibleToAttribute

Namespace
System.Runtime.CompilerServices
Assembly
mscorlib.dll

Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class InternalsVisibleToAttribute : Attribute
Inheritance
InternalsVisibleToAttribute
Inherited Members
Extension Methods

Constructors

InternalsVisibleToAttribute(string)

Initializes a new instance of the InternalsVisibleToAttribute class with the name of the specified friend assembly.

public InternalsVisibleToAttribute(string assemblyName)

Parameters

assemblyName string

The name of a friend assembly.

Properties

AssemblyName

Gets the name of the friend assembly to which all types and type members that are marked with the internal keyword are to be made visible.

public string AssemblyName { get; }

Property Value

string

A string that represents the name of the friend assembly.