docs.unity.cn
    Show / Hide Table of Contents

    Interface IFormatter

    Converts an object to a string.

    Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
    Syntax
    public interface IFormatter

    Properties

    Names

    An extension can be explicitly called by using any of its names. Any extensions with "" names will be called implicitly (when no named formatter is specified). For example, "{0:default:N2}" or "{0:d:N2}" will explicitly call the "default" extension. "{0:N2}" will implicitly call the "default" extension (and other extensions, too).

    Declaration
    string[] Names { get; set; }
    Property Value
    Type Description
    String[]

    Methods

    TryEvaluateFormat(IFormattingInfo)

    Writes the current value to the output, using the specified format. IF this extension cannot write the value, returns false, otherwise true.

    Declaration
    bool TryEvaluateFormat(IFormattingInfo formattingInfo)
    Parameters
    Type Name Description
    IFormattingInfo formattingInfo
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 28, 2021