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
Constructores
Propiedades
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
FriendOfAttribute en Antril, descompilado a partir de su Larva HIR.
// 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;
}
}
}