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.
- Kind
- final attribute
- Namespace
- System
- Assembly
- System.Core
- Access
- public, final
- Source file
Reflection.ant
Inheritance
Constructors
Properties
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
FriendOfAttribute as Antril, decompiled from its 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;
}
}
}