Table of Contents

Class PublisherWireStrings

Namespace
DatabentoDotNet.Dbn.Publishers
Assembly
DatabentoDotNet.Dbn.dll

Allocation-free, reflection-free DBN wire string conversions for Venue, Dataset, and Publisher.

public static class PublisherWireStrings
Inheritance
PublisherWireStrings
Inherited Members

Remarks

Mechanically generated from publishers.rs (v0.68.0) by tools/generate-publishers.py -- see that type's own as_str/FromStr in the Rust source. No aliases: every wire string accepted by a TryParse{Enum} method here is also the one ToWireString emits for the matching value. One method per enum rather than a single overload distinguished only by its out parameter's type, matching WireStrings's convention -- an overload would make the ordinary out var call form ambiguous and fail to compile.

Methods

ToWireString(Dataset)

Converts value to its DBN wire string.

public static string ToWireString(this Dataset value)

Parameters

value Dataset

Returns

string

Exceptions

ArgumentOutOfRangeException

value is not a defined Dataset.

ToWireString(Publisher)

Converts value to its DBN wire string.

public static string ToWireString(this Publisher value)

Parameters

value Publisher

Returns

string

Exceptions

ArgumentOutOfRangeException

value is not a defined Publisher.

ToWireString(Venue)

Converts value to its DBN wire string.

public static string ToWireString(this Venue value)

Parameters

value Venue

Returns

string

Exceptions

ArgumentOutOfRangeException

value is not a defined Venue.

TryParseDataset(string?, out Dataset)

Tries to parse a DBN wire string into a Dataset. No aliases.

public static bool TryParseDataset(string? value, out Dataset result)

Parameters

value string
result Dataset

Returns

bool

TryParsePublisher(string?, out Publisher)

Tries to parse a DBN wire string into a Publisher. No aliases.

public static bool TryParsePublisher(string? value, out Publisher result)

Parameters

value string
result Publisher

Returns

bool

TryParseVenue(string?, out Venue)

Tries to parse a DBN wire string into a Venue. No aliases.

public static bool TryParseVenue(string? value, out Venue result)

Parameters

value string
result Venue

Returns

bool