Class InternalsVisibleToAttribute
Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.
Inherited Members
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class InternalsVisibleToAttribute : Attribute
Constructors
InternalsVisibleToAttribute(string)
Initializes a new instance of the InternalsVisibleToAttribute class with the name of the specified friend assembly.
Declaration
public InternalsVisibleToAttribute(string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
string | assemblyName | 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.
Declaration
public string AssemblyName { get; }
Property Value
Type | Description |
---|---|
string | A string that represents the name of the friend assembly. |