System.Reflection.FieldInfo.IsAssembly Property

Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.Assembly; that is, the field is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.

Syntax

public bool IsAssembly { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The actual visibility of a field is limited by the visibility of its type. The FieldInfo.IsAssembly property might be true for a field, but if it is a field of a private nested type then the field is not visible outside the containing type.

The visibility of a field is exactly described by FieldAttributes.Assembly if the only visibility modifier is internal (Friend in Visual Basic). This property is false for fields that are protected internal in C# (Protected Friend in Visual Basic, protected public in C++); use the FieldInfo.IsFamilyOrAssembly property to identify such fields.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0