Visual Studio > Track Active Item in Solution Explorer
Search This Blog
Wednesday, December 14, 2016
Monday, December 5, 2016
Trailing zero numeric format string C#
C# > ToString
Examples:
1. Trailing zero numeric format string C#
"N" or "n" is for number.
double num = 4.2;
Examples:
1. Trailing zero numeric format string C#
"N" or "n" is for number.
double num = 4.2;
string
result = num.ToString("N2"); //
"4.20"
Etichete:
c#
Wednesday, October 19, 2016
Friday, October 7, 2016
ReStructured Text Color
Sphinx documentation > Color Text
.. role:: blue
This text is :blue:`blue text`.
.. role:: blue
This text is :blue:`blue text`.
Etichete:
ReStructured,
sphinx
Monday, September 19, 2016
Multine line text table Sphinx Documentation
Multine line text table Sphinx Documentation
+---------+
| Text |
+=====+
| | line1 |
| | line2 |
| | line3 |
+---------+
+---------+
| Text |
+=====+
| | line1 |
| | line2 |
| | line3 |
+---------+
Etichete:
sphinx
Thursday, September 8, 2016
sphinx-build example from command prompt
run from command prompt:
sphinx-build -b html -d _build/doctrees . _build/html index.rst
sphinx-build -b html -d _build/doctrees . _build/html index.rst
Etichete:
sphinx
Tuesday, September 6, 2016
LINQ OrderByDescending Example C#
C# > LINQ > Enumerable Class > OrderByDescending
Sorts the elements of a sequence in descending order.
Example
Sorts the elements of a sequence in descending order.
Example
List<int> list = new List<int> { 2, 5 ,3
,10, 7 };
IEnumerable<int> ordList = list.OrderByDescending(num => num);
foreach (int num in ordList)
{
Console.WriteLine(num);
}
Subscribe to:
Posts (Atom)