Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- decimal startAngle = Convert.ToDecimal(159.9);
- decimal stopAngle = Convert.ToDecimal(355.87);
- //swap each:
- //startAngle becomes: 355.87
- //stopAngle becomes: 159.9
- startAngle = startAngle+stopAngle;
- stopAngle = startAngle-stopAngle;
- startAngle = startAngle-stopAngle;
- decimal startAngle = Convert.ToDecimal(159.9);
- decimal stopAngle = Convert.ToDecimal(355.87);
- decimal tempDecimal = startAngle;
- startAngle = stopAngle;
- stopAngle = tempDecimal;
- stopAngle = Convert.ToDecimal(159.9);
- startAngle = Convert.ToDecimal(355.87);
- int x = 42;
- int y = 51236;
- x ^= y;
- y ^= x;
- x ^= y;
- int a = 4, b = 6;
- a^= b^= a^= b;
- float startAngle = 159.9F;
- float stopAngle = 355.87F;
- startAngle = startAngle * stopAngle;
- stopAngle = startAngle / stopAngle;
- startAngle = startAngle / stopAngle;
- static bool Swap<T>(ref T x, ref T y)
- {
- try
- {
- T t = y;
- y = x;
- x = t;
- return true;
- }
- catch
- {
- return false;
- }
- }
- float startAngle = 159.9F
- float stopAngle = 355.87F
- Swap<float>(ref startAngle, ref stopAngle);
- MyObject obj1 = new MyObject("object1");
- MyObject obj2 = new MyObject("object2");
- Swap<MyObject>(ref obj1, ref obj2);
- a %= b %= a %= b;
- y^=x^=y^=x;
- x^=y^=x;y^=x;
Add Comment
Please, Sign In to add comment