You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Format("Hello, {:s}!", "world"); // "Hello, world"Format("{0:s}{1:s}{0:s}", "abra", "cad"); // "abracadabra"Format("The answer is {:d}.", 42); // "42"Format("Hello, {name:s}! The answer is {number:d}. Goodbye, {name:s}.", FmtArg("name", "World"), FmtArg("number", 42)); // "Hello, World! The answer is 42. Goodbye, World."
There is tagof operator in SP, can we use it for type auto-examination? Can we use it at least for FmtArg? If not, should we add argument in FmtArg to pass the type?
Also we can choose default type for {}, but there are several frequently used types, so I don't prefer it.
The text was updated successfully, but these errors were encountered:
Examples:
There is
tagof
operator in SP, can we use it for type auto-examination? Can we use it at least forFmtArg
? If not, should we add argument inFmtArg
to pass the type?Also we can choose default type for
{}
, but there are several frequently used types, so I don't prefer it.The text was updated successfully, but these errors were encountered: