Advanced formatting rules for StringBuilder.AppendFormat

I've seen on this site a StringBuilder code sample illustrating AppendFormat usage:

using System;
using System.Text;

class Program
    static int[] _v = new int[]

    static void Main()
        StringBuilder b = new StringBuilder();
        foreach (int v in _v)
            b.AppendFormat("int: {0:0.0}{1}", v,
=== Output of the program ===

int: 1.0
int: 4.0
int: 6.0

Where can I find documentation on those advanced rules for string formatting?


Are you looking for this ?

You can start by checking the Composite Formatting article at MSDN. From there you will find links to standard format strings for numbers and dates, as well as links to the custom format strings for both numbers and dates.

Need Your Help

Post to a Facebook page (not user page) using Koala

ruby-on-rails ruby permissions koala

How do I post to a user page using Koala? I don't want to post to a Users' wall, but to a User page (a user can manage many pages).

How to configure Apache to dispatch websocket requests on default port

apache websocket

I have an Apache server running for normal web pages on port 80. How can apache be configured to dispatch requests for a web socket call to my WS server. The client code looks like :-