Methods
Combine the primary and secondary descriptors into a single LazyStrings instance. This method handles formatting for null pears correctly.
public static LazyStrings DescribeLazyBoth()
this ITypeAssistant
assistant,
Assistant to invoke.
pear,
Value to operate on.
prefix = null,
Optional prefix for the primary string.
suffix = null
Optional suffix for the primary string.
Returns: Lazystring pair.
Wrap the primary descriptor into a single LazyString instance. This method handles formatting for null pears correctly.
public static LazyString DescribeLazyPrimary()
this ITypeAssistant
assistant,
Assistant to invoke.
pear,
Value to operate on.
prefix = null,
Optional prefix for the descriptor string.
suffix = null
Optional suffix for the descriptor string.
Returns: Lazy string with deferred formatting.
Wrap the secondary descriptor into a single LazyString instance. This method handles formatting for null pears correctly.
Returns: Lazy string with deferred formatting.
Wrap the formatting into a single LazyString instance. This method handles formatting for null pears correctly.
Returns: Lazy string with deferred formatting.
Call either the Format, FormatPartial or DescribePrimary methods depending on which one is available.
Returns: The result of one of the formatting methods, or string.Empty.