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
PublicApiMemberPublicApiMethod
Properties
| Name | Description |
|---|---|
| AssociatedSymbol | Gets the property or the event that declares this accessor. It is null for other methods. |
| ExtensionImplementation | 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. |
| GenericParameters | |
| ImplementedExtensionMember | 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. |
| IsExtensionMethod | Gets a value indicating whether the method is a classic extension method (this modifier on the first parameter). |
| IsGenericMethod | |
| IsInitOnly | Gets a value indicating whether the method is an init accessor. |
| IsReadOnly | Gets a value indicating whether the method is a readonly member of a struct. |
| Kind | |
| MethodKind | |
| Parameters | |
| ReturnAttributes | |
| ReturnRefKind | |
| ReturnType | Gets the return type. Constructors and void methods return System.Void. |
| ReturnsVoid |
AssociatedSymbol
PublicApiMethod.csGets the property or the event that declares this accessor. It is null for other methods.
public PublicApiMember? AssociatedSymbol { get; }Property value
ExtensionImplementation
PublicApiMethod.csGets 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
GenericParameters
PublicApiMethod.cspublic ImmutableArray<PublicApiGenericParameter> GenericParameters { get; }Property value
No documentation is available.
ImplementedExtensionMember
PublicApiMethod.csGets 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
IsExtensionMethod
PublicApiMethod.csIsGenericMethod
PublicApiMethod.csIsInitOnly
PublicApiMethod.csIsReadOnly
PublicApiMethod.csMethodKind
PublicApiMethod.csParameters
PublicApiMethod.cspublic ImmutableArray<PublicApiParameter> Parameters { get; }Property value
No documentation is available.
ReturnAttributes
PublicApiMethod.cspublic ImmutableArray<PublicApiAttribute> ReturnAttributes { get; }Property value
No documentation is available.
ReturnRefKind
PublicApiMethod.csReturnType
PublicApiMethod.csGets the return type. Constructors and void methods return System.Void.
public PublicApiTypeReference ReturnType { get; }