final attribute · System

FriendOfAttribute

public final attribute FriendOf

[FriendOf(T)] on a type makes it and T friends, from any assembly: each sees the other's friendly members.

Tipo
final attribute
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Reflection.ant

Herencia

Clases base
Any Attribute FriendOfAttribute

Constructores

new(Type friend)
#

Propiedades

Type Friend { get; }
#

read-only

The type named.

Miembros privados e internos (1)

readonly Type friend
#

private

Miembros heredados (5)

Código fuente

FriendOfAttribute en Antril, descompilado a partir de su Larva HIR.

System.FriendOfAttribute.ant
// System.FriendOfAttribute — System.Core (decompiled from Larva HIR)

into namespace System
{
	/// `[FriendOf(T)]` on a type makes it and `T` friends, from any assembly: each sees the other's `friendly` members.
	public final attribute FriendOf
	{
		readonly Type friend;

		public:
			new(Type friend)
			{
				this.friend = friend;
			}

			/// The type named.
			Type Friend
			{
				get => friend;
			}
	}
}
Esc