Table of Contents

Class Role

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Represents the role a node plays within its parent.

public abstract class Role
Inheritance
Role
Derived
Inherited Members

Fields

RoleIndexBits

public const int RoleIndexBits = 9

Field Value

int

Properties

Index

public uint Index { get; }

Property Value

uint

Methods

GetByIndex(uint)

Gets the role with the specified index.

public static Role GetByIndex(uint index)

Parameters

index uint

Returns

Role

IsValid(object)

Gets whether the specified node is valid in this role.

public abstract bool IsValid(object node)

Parameters

node object

Returns

bool