I discovered an undocumented attribute, and it is Friend
, it is located in namespace
System.Runtime.CompilerServices
, because it is used on the system, it has no documentation. I tried to decompile this attribute and received this source:
<AttributeUsage(AttributeTargets.[Class] Or AttributeTargets.Struct Or AttributeTargets.[Enum] Or AttributeTargets.Constructor Or AttributeTargets.Method Or AttributeTargets.[Property] Or AttributeTargets.Field Or AttributeTargets.[Event] Or AttributeTargets.[Interface]), FriendAccessAllowed()>
Friend Class FriendAccessAllowedAttribute
Inherits Attribute
<TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>
Public Sub New()
End Sub
End Class
also came this class, called __DynamicallyInvokableAttribute
: '
<AttributeUsage(AttributeTargets.All)>
Public Class __DynamicallyInvokableAttribute
Inherits Attribute
<TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>
Public Sub New()
End Sub
End Class