Table of Contents

Class LayoutConstant

Namespace
CStructSharp.Introspection
Assembly
CStructSharp.dll

One #define of a compiled layout, as published by Constants.

public sealed class LayoutConstant
Inheritance
LayoutConstant
Inherited Members

Properties

Kind

Gets what kind of value the definition carries.

public LayoutConstantKind Kind { get; }

Property Value

LayoutConstantKind

Name

Gets the defined name.

public string Name { get; }

Property Value

string

Value

Gets the value: a BigInteger, string, a fresh byte[] copy, or null (see LayoutConstantKind).

public object? Value { get; }

Property Value

object

Methods

ToString()

Renders the definition as the #define line that produces it.

public override string ToString()

Returns

string

A #define line, with text and byte values quoted and escaped.