PublicApiMember Class

A field, a property, an event or a method.

public abstract class PublicApiMember : PublicApiSymbol
Inheritance
PublicApiSymbol PublicApiMember

Properties

NameDescription
ExplicitInterfaceImplementationsGets the interface members implemented explicitly by this member, as recorded in the MethodImpl metadata table.
ExtensionBlockGets 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
IsExplicitInterfaceImplementationGets a value indicating whether the member is an explicit interface implementation (e.g. void IDisposable.Dispose()).
IsNewGets 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.
IsOverrideGets a value indicating whether the member overrides an inherited member (override in C#).
IsSealedGets a value indicating whether the member is a sealed override (sealed override in C#).
IsStatic
IsVirtualGets a value indicating whether the member is virtual and introduces a new slot (virtual in C#).
RequiresUnsafeGets 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.cs

Gets the interface members implemented explicitly by this member, as recorded in the MethodImpl metadata table.

public ImmutableArray<PublicApiMemberReference> ExplicitInterfaceImplementations { get; }

ExtensionBlock

PublicApiMember.cs

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.

public PublicApiExtensionBlock? ExtensionBlock { get; }
public bool IsAbstract { get; }

Property value

bool

No documentation is available.

IsExplicitInterfaceImplementation

PublicApiMember.cs

Gets a value indicating whether the member is an explicit interface implementation (e.g. void IDisposable.Dispose()).

public bool IsExplicitInterfaceImplementation { get; }

Property value

bool

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.

public bool IsNew { get; }

Property value

bool

Gets a value indicating whether the member overrides an inherited member (override in C#).

public bool IsOverride { get; }

Property value

bool

Gets a value indicating whether the member is a sealed override (sealed override in C#).

public bool IsSealed { get; }

Property value

bool

public bool IsStatic { get; }

Property value

bool

No documentation is available.

Gets a value indicating whether the member is virtual and introduces a new slot (virtual in C#).

public bool IsVirtual { get; }

Property value

bool

RequiresUnsafe

PublicApiMember.cs

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).

public bool RequiresUnsafe { get; }

Property value

bool