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

Base classes
Any Attribute FriendOfAttribute

Constructors

new(Type friend)
#

Properties

Type Friend { get; }
#

read-only

The type named.

Private and internal members (1)

readonly Type friend
#

private

Inherited members (5)

Source

FriendOfAttribute as Antril, decompiled from its 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