PostSharpAPI ReferencePost­Sharp.​ConstraintsComponent­Internal­AttributeComponent­Internal­Attribute
Open sandboxFocus

ComponentInternalAttribute Constructor

ComponentInternalAttribute()

Initializes a ComponentInternalAttribute restricting the target declaration from being used from another namespace than the namespace of the declaration.

Declaration
public ComponentInternalAttribute()

ComponentInternalAttribute(Type[])

Initializes a ComponentInternalAttribute restricting the target declaration from being used outside of given types or namespaces, given as System.Type.

Declaration
public ComponentInternalAttribute(params Type[] friendTypes)
Parameters
Type Name Description
System.Type[] friendTypes

List of types from which the target declaration can be used. If the name of a type is NamespaceType, the whole namespace of this type is allowed.

ComponentInternalAttribute(String[])

Initializes a ComponentInternalAttribute restricting the target declaration from being used outside of given types or namespaces, given by strings.

Declaration
public ComponentInternalAttribute(params string[] friendNamespaces)
Parameters
Type Name Description
System.String[] friendNamespaces

List of types or namespaces from which the target declaration can be used.