demo csharp for common usage

Format
C#
Post date
2016-05-16 15:44
Publication Period
Unlimited
  1. #region Studio Style
  2. class Program : IThemeable
  3. {
  4. static int _I = 1;
  5. delegate void DoSomething();
  6. /// <summary>
  7. /// the quick brown fox jumps over the lazy dog
  8. /// THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
  9. /// 0123456789
  10. /// ,.:'"\\/?-+=
  11. /// </summary>
  12. static void Main(string[] args)
  13. {
  14. string normalStr = "The time now is approximately " + DateTime.Now;
  15. Uri Illegal1Uri = new Uri("http://packmyboxwith/jugs.html?q=five-dozen&t=liquor");
  16. Regex OperatorRegex = new Regex(@"\S#$", RegexOptions.IgnorePatternWhitespace);
  17. /*
  18. * 开始循环
  19. * 2016/4/13 revsion:20150014
  20. */
  21. for (int O = 0; O < 123456789; O++)
  22. {
  23. _I += (O % 3) * ((O / 1) ^ 2) - 5;
  24. if (!OperatorRegex.IsMatch(Illegal1Uri.ToString()))
  25. {
  26. // no idea what this does!?
  27. Console.WriteLine(Illegal1Uri + normalStr);
  28. }
  29. }
  30. }
  31. }
  32. #endregion
Download Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text