I want to show custom ToString() formats in intellisense like DateTime.ToString() below.
Below is sample code where I would like to show "a" or "b" in intellisense when someone types myObject.ToString("").
public class MyClass : IFormattable
{
public string ToString(string format, IFormatProvider formatProvider)
{
switch (format)
{
case "a":
return "A";
case "b":
return "B";
default:
return "A";
}
}
}
