var accounts = new Dictionary<string, double>();
// Initialise to zero...
accounts["Fred"] = 0;
accounts["George"] = 0;
accounts["Fred"] = 0;
// Add cash.
accounts["Fred"] += 4.56;
accounts["George"] += 1.00;
accounts["Fred"] += 1.00;
Console.WriteLine("Fred owes me ${0}", accounts["Fred"]);
float Map(float s, float a1, float a2, float b1, float b2)
{
return b1 + (s - a1) * (b2 - b1) / (a2 - a1);
}
Code Example |
---|
Csharp :: jump in unity |
Csharp :: csharp |
Csharp :: c# console foreground color |
Csharp :: unity movement |
Csharp :: c# run loop x times |
Csharp :: difference between iqueryable and ienumerable c# |
Csharp :: javascript close page after 5 seconds |
Csharp :: unity find gameobject |
Csharp :: c# first item i list |
Csharp :: Cursor Lock and Visible in Unity |
Csharp :: dota2 |
Csharp :: c# current dir |
Csharp :: c# shuffle |
Csharp :: unity log error |
Csharp :: unity always rotating object |
Csharp :: c# restclient timeout |
Csharp :: c# console wait for input |
Csharp :: function in c# to do addition |
Csharp :: c# console header |
Csharp :: int to bool c# |
Csharp :: create sequence of squares in c# |
Csharp :: Local to global position unity |
Csharp :: c# access session in class |
Csharp :: swap two numbers c# |
Csharp :: c# how to fill a datatable |
Csharp :: c# cancellationtoken example |
Csharp :: c# string from b64 |
Csharp :: what is botnet attack |
Csharp :: write last element of dictionary c# |
Csharp :: c# not |