Table of Contents

Class ObjectPropertySymbol

Namespace
MuLang.Core.Types
Assembly
MuLang.Core.dll

Represents a property declared by a structured object type.

public sealed class ObjectPropertySymbol
Inheritance
ObjectPropertySymbol
Inherited Members

Constructors

ObjectPropertySymbol(string, TypeSymbol, bool, bool)

Initializes a new instance of the ObjectPropertySymbol class.

public ObjectPropertySymbol(string name, TypeSymbol type, bool isOptional = false, bool isReadOnly = false)

Parameters

name string

The language name.

type TypeSymbol

The type.

isOptional bool

A value indicating whether the property may be omitted.

isReadOnly bool

A value indicating whether the property value and presence are read-only.

Exceptions

ArgumentNullException

Thrown when name or type is null.

ArgumentException

Thrown when type cannot be used for an object property.

Properties

IsOptional

Gets a value indicating whether the property may be omitted.

public bool IsOptional { get; }

Property Value

bool

IsReadOnly

Gets a value indicating whether the property value and presence are read-only.

public bool IsReadOnly { get; }

Property Value

bool

Name

Gets the property name.

public string Name { get; }

Property Value

string

Type

Gets the property type.

public TypeSymbol Type { get; }

Property Value

TypeSymbol