CxRegion

Description

sealed class Tinman.Core.Cx.Declarations.CxRegion

Derived from

CxNode abstract

Represents a named region inside of a type declaration that contains zero or more member declarations:

#region Region

...

#endregion
See also

CxMember

Public / Constructors

Cx​Region


public constructor CxRegion → (2)

name in : string

[not-empty]
The region name.

members opt : IBagConst<CxMember> = null

The region member list or null for an empty list. See Members.

Creates a new instance of CxRegion.

Public / Methods

As​Class

2 overloads


public method AsClass1 → (1)

name opt : string = null

The class name. If null, 'MyClass' will be used.

returns → CxDeclarationType

The wrapping type declaration.

Wraps this code region in a class declaration.

ValidatingException

If name opt is invalid.


public method AsClass2 → (1)

name in : CxId

The class name.

returns → CxDeclarationType

The wrapping type declaration.

Wraps this code region in a class declaration.

Public / Attributes

Members


[Constant]
public attribute Members → (get)

value : IVectorConst<CxMember>

[not-null]
The region members.

Returns the region members.

Name


[Constant]
public attribute Name → (get)

value : string

[not-empty]
The region name.

Returns the region name.