Skip to content

Commit

Permalink
ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseynemiro committed Sep 10, 2014
1 parent b28300f commit 4576b06
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To install **Nemiro.Convertion**, run the following command in the **Package Man
* Sandcastle Help File Builder (for documentation project).

### Examples

**C#**
```C#
object value = "123.456"; // dot
double num = Convertion.ToDouble(value);
Expand All @@ -41,9 +41,14 @@ Console.WriteLine("45102691578 is {0}", duosexagesimal);

string customHex = Convertion.ToBase16(123, "ABCDEFGHIJKLMNOP");
Console.WriteLine("123 is {0}", customHex);
Console.WriteLine("{0} is {1}", customHex, Convertion.FromBase16(customHex, "ABCDEFGHIJKLMNOP"));
Console.WriteLine
(
"{0} is {1}",
customHex,
Convertion.FromBase16(customHex, "ABCDEFGHIJKLMNOP")
);
```

**Visual Basic .NET**
```VB
Dim value As Object = "123.456" // dot
Dim num As Double = Convertion.ToDouble(value)
Expand All @@ -61,7 +66,12 @@ Console.WriteLine("45102691578 is {0}", duosexagesimal)

Dim customHex As String = Convertion.ToBase16(123, "ABCDEFGHIJKLMNOP")
Console.WriteLine("123 is {0}", customHex)
Console.WriteLine("{0} is {1}", customHex, Convertion.FromBase16(customHex, "ABCDEFGHIJKLMNOP"))
Console.WriteLine _
(
"{0} is {1}",
customHex,
Convertion.FromBase16(customHex, "ABCDEFGHIJKLMNOP")
)
```

### See Also
Expand Down

0 comments on commit 4576b06

Please sign in to comment.