PublicApiMember Class
A field, a property, an event or a method.
public abstract class PublicApiMember : PublicApiSymbol- Inheritance
PublicApiSymbolPublicApiMember
Properties
| Name | Description |
|---|---|
| ExplicitInterfaceImplementations | Gets the interface members implemented explicitly by this member, as recorded in the MethodImpl metadata table. |
| ExtensionBlock | Gets the C# 14 extension block that declares the member, or null when the member is not declared in an extension block. It is set on the members of PublicApiExtensionBlock.Members and on their accessors, not on the implementation methods of the static class. |
| IsAbstract | |
| IsExplicitInterfaceImplementation | Gets a value indicating whether the member is an explicit interface implementation (e.g. void IDisposable.Dispose()). |
| IsNew | Gets a value indicating whether the member hides a member inherited from a base type that is visible outside its assembly (new in C#). The modifier is not stored in metadata, so it is inferred from the members of the base types. The base types that cannot be found are ignored. |
| IsOverride | Gets a value indicating whether the member overrides an inherited member (override in C#). |
| IsSealed | Gets a value indicating whether the member is a sealed override (sealed override in C#). |
| IsStatic | |
| IsVirtual | Gets a value indicating whether the member is virtual and introduces a new slot (virtual in C#). |
| RequiresUnsafe | Gets a value indicating whether the compiler marked the member as requiring an unsafe context. It is only set for assemblies compiled with the updated memory safety rules (see PublicApiAssembly.UsesUpdatedMemorySafetyRules). |
ExplicitInterfaceImplementations
PublicApiMember.csGets the interface members implemented explicitly by this member, as recorded in the MethodImpl metadata table.
public ImmutableArray<PublicApiMemberReference> ExplicitInterfaceImplementations { get; }Property value
ExtensionBlock
PublicApiMember.csGets the C# 14 extension block that declares the member, or null when the member is not declared in an extension block. It is set on the members of PublicApiExtensionBlock.Members and on their accessors, not on the implementation methods of the static class.
public PublicApiExtensionBlock? ExtensionBlock { get; }Property value
IsAbstract
PublicApiMember.csIsExplicitInterfaceImplementation
PublicApiMember.csIsNew
PublicApiMember.csGets a value indicating whether the member hides a member inherited from a base type that is visible outside its assembly (new in C#). The modifier is not stored in metadata, so it is inferred from the members of the base types. The base types that cannot be found are ignored.
public bool IsNew { get; }Property value
IsOverride
PublicApiMember.csIsSealed
PublicApiMember.csIsStatic
PublicApiMember.csIsVirtual
PublicApiMember.csRequiresUnsafe
PublicApiMember.csGets a value indicating whether the compiler marked the member as requiring an unsafe context. It is only set for assemblies compiled with the updated memory safety rules (see PublicApiAssembly.UsesUpdatedMemorySafetyRules).
public bool RequiresUnsafe { get; }