Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Smart

This class holds a Smart.Default instance of a SmartFormatter. The default instance has all extensions registered. For optimized performance, create a SmartFormatter instance and register the particular extensions that are needed. Smart methods are not thread safe.
Read time 1 minuteLast updated 4 days ago

Definition

public static class Smart

Static Properties

Property

Description

DefaultThe default SmartFormatter used by the static Smart formatting methods. If not set, a formatter from Smart.CreateDefaultSmartFormat is used.
ProjectThe SmartFormatter from the active project SmartStringsSettings, or
null
if no SmartStringsSettings is active.

Static Methods

Method

Description

CreateDefaultSmartFormatCreates a new SmartFormatter instance with core extensions registered. For optimized performance, create a SmartFormatter instance and register the particular extensions that are really needed.
FormatReplaces the format items in the specified format string with the string representation or the corresponding object.