Table of Contents

Class StyleClassNames

Namespace
Velvet
Assembly
Velvet.Docs.dll

Central null/empty-safe join point for utility-first class composition, so call sites can pass raw conditional expressions (ternaries, When(bool, string)) as arguments without each one guarding against null or empty branches itself.

public static class StyleClassNames
Inheritance
object
StyleClassNames

Methods

Class(params string?[])

Single allocation-conscious join point, so callers never special-case the 0/1-argument shape.

When(bool, string)

Sugar for a ternary, so a Class(params string?[]) call reads as a flat list of always/conditionally-applied classes.