PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Spec­Declaration Class / Type­Spec­Declaration Methods / Type­Spec­Declaration.​Get­Siblings Method

TypeSpecDeclaration.GetSiblings Method

Gets all instances of TypeSpecDeclaration that have the same signature.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public IEnumerable<TypeSpecDeclaration> GetSiblings()

Return Value

Type: IEnumerable<TypeSpecDeclaration>
The set of all instances of TypeSpecDeclaration that have the same signature.
Remarks
Compilers are supposed to generate a unique TypeSpecDeclaration for each signature. However, this rule is not always respected.
See Also