DBusSignature record struct

Namespace Runic.Platform.Linux.DBus in Runic.Platform.Linux.DBus 0.23.0

public readonly record struct DBusSignature : IEquatable<DBusSignature>

Inherits or implements IEquatable.

A D-Bus type signature, such as s, a{sv} or (ii); empty for no values.

Constructors

DBusSignature

public DBusSignature(string value)

Creates a signature after checking its syntax.

Exceptions

ArgumentException

value is not a valid signature.

Properties

IsSingleCompleteType

public bool IsSingleCompleteType { get; }

Whether the signature describes exactly one complete type, as a value's signature does.

Value

public string Value { get; }

The signature as text. The default value is empty.

Methods

Equals

public bool Equals(DBusSignature other)

Compares two signatures by DBusSignature.Value, so the default value equals the empty signature.

GetHashCode

public override int GetHashCode()

Inherits documentation from Object.GetHashCode.

ToString

public override string ToString()

Inherits documentation from Object.ToString.

Operators

implicit operator DBusSignature

public static implicit operator DBusSignature(string value)

Converts a string to a signature.

Exceptions

ArgumentException

value is not a valid signature.