Table of Contents

Class SupportedLanguages

Namespace
RDCore.SDK.Workspace
Assembly
RDCore.SDK.dll

The languages the platform serves.

public static class SupportedLanguages
Inheritance
SupportedLanguages
Inherited Members

Properties

All

Every language the platform serves.

public static IReadOnlyList<SupportedLanguage> All { get; }

Property Value

IReadOnlyList<SupportedLanguage>

BASIC

The platform's BASIC, which an interactive shell is written in.

public static SupportedLanguage BASIC { get; }

Property Value

SupportedLanguage

Remarks

Its source is a .rdc file: a program of the shell, a text file of lines. It is not a .bas, which is a module of the BASIC of Visual Basic - a file with procedures in it, and a header - and which this is not.

DocumentSelector

The selector of the documents of every language the platform serves, by their files: a client names a document's language its own way, so what selects a document is the file it is.

public static TextDocumentSelector DocumentSelector { get; }

Property Value

TextDocumentSelector

RDVBA

RD-VBA: the platform's own implementation of MS-VBAL, and the default.

public static SupportedLanguage RDVBA { get; }

Property Value

SupportedLanguage

VB6

VB6.

public static SupportedLanguage VB6 { get; }

Property Value

SupportedLanguage

Methods

Get(string?)

The language with the given identifier.

public static SupportedLanguage Get(string? id)

Parameters

id string

The identifier, as Id.

Returns

SupportedLanguage

Exceptions

InvalidOperationException

The platform serves no such language.

OfProject(RDCoreProject)

The language a project's file says the project is written in: VB6 for a project imported from a Visual Basic 6 project (SourceProject, a .vbp).

public static SupportedLanguage? OfProject(RDCoreProject project)

Parameters

project RDCoreProject

The project.

Returns

SupportedLanguage

The language, or null when the project's file says none.

Remarks

A server takes it when its client names no language in the initializationOptions of its initialize request (Language): what the client names wins. A project that was not imported from a .vbp says no language, and the server's own setting stands.

TryGet(string?, out SupportedLanguage)

The language with the given identifier.

public static bool TryGet(string? id, out SupportedLanguage language)

Parameters

id string

The identifier, as Id; compared without regard to case.

language SupportedLanguage

The language, when there is one by that identifier.

Returns

bool

false when the platform serves no such language.