PublicApiMethod Class

A method, a constructor, an operator, a destructor, or an accessor of a property or an event.

public sealed class PublicApiMethod : PublicApiMember
Inheritance
PublicApiMember PublicApiMethod

Properties

NameDescription
AssociatedSymbolGets the property or the event that declares this accessor. It is null for other methods.
ExtensionImplementationGets the implementation method, declared by the static class, of a method or an accessor of a C# 14 extension block (see PublicApiMember.ExtensionBlock). It is null for other methods.
GenericParameters
ImplementedExtensionMemberGets the member of a C# 14 extension block implemented by this method of the static class: a method, or the property or the event of an accessor. It is null for other methods.
IsExtensionMethodGets a value indicating whether the method is a classic extension method (this modifier on the first parameter).
IsGenericMethod
IsInitOnlyGets a value indicating whether the method is an init accessor.
IsReadOnlyGets a value indicating whether the method is a readonly member of a struct.
Kind
MethodKind
Parameters
ReturnAttributes
ReturnRefKind
ReturnTypeGets the return type. Constructors and void methods return System.Void.
ReturnsVoid

AssociatedSymbol

PublicApiMethod.cs

Gets the property or the event that declares this accessor. It is null for other methods.

public PublicApiMember? AssociatedSymbol { get; }

Property value

PublicApiMember?

ExtensionImplementation

PublicApiMethod.cs

Gets the implementation method, declared by the static class, of a method or an accessor of a C# 14 extension block (see PublicApiMember.ExtensionBlock). It is null for other methods.

public PublicApiMethod? ExtensionImplementation { get; }

Property value

PublicApiMethod?

GenericParameters

PublicApiMethod.cs
public ImmutableArray<PublicApiGenericParameter> GenericParameters { get; }

No documentation is available.

ImplementedExtensionMember

PublicApiMethod.cs

Gets the member of a C# 14 extension block implemented by this method of the static class: a method, or the property or the event of an accessor. It is null for other methods.

public PublicApiMember? ImplementedExtensionMember { get; }

Property value

PublicApiMember?

IsExtensionMethod

PublicApiMethod.cs

Gets a value indicating whether the method is a classic extension method (this modifier on the first parameter).

public bool IsExtensionMethod { get; }

Property value

bool

IsGenericMethod

PublicApiMethod.cs
public bool IsGenericMethod { get; }

Property value

bool

No documentation is available.

Gets a value indicating whether the method is an init accessor.

public bool IsInitOnly { get; }

Property value

bool

Gets a value indicating whether the method is a readonly member of a struct.

public bool IsReadOnly { get; }

Property value

bool

public override PublicApiSymbolKind Kind { get; }

Property value

PublicApiSymbolKind

No documentation is available.

public PublicApiMethodKind MethodKind { get; }

Property value

PublicApiMethodKind

No documentation is available.

public ImmutableArray<PublicApiParameter> Parameters { get; }

No documentation is available.

ReturnAttributes

PublicApiMethod.cs
public ImmutableArray<PublicApiAttribute> ReturnAttributes { get; }

No documentation is available.

ReturnRefKind

PublicApiMethod.cs
public PublicApiRefKind ReturnRefKind { get; }

Property value

PublicApiRefKind

No documentation is available.

Gets the return type. Constructors and void methods return System.Void.

public PublicApiTypeReference ReturnType { get; }
public bool ReturnsVoid { get; }

Property value

bool

No documentation is available.