Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public class NamingRulesChecker
  2. {
  3. private const string PrivateConst = " ";
  4. private static readonly double PrivateStaticReadonlyLikeConstant = TimeSpan.FromSeconds(3).Ticks;
  5. private static readonly string[] _privateStaticReadonlyOthers = new[] { "None" };
  6.  
  7. private static string _privateStatic = "";
  8.  
  9. public const string PublicConst = "";
  10. public static string PublicStatic = "";
  11.  
  12. private string _privateInstance;
  13. public string PublicInstance;
  14.  
  15. // protected fields should not be used
  16.  
  17. private void Member(string paraMeter)
  18. {
  19. const string LocalConst = "";
  20.  
  21. var localVar = paraMeter;
  22. _privateStatic = string.Empty;
  23.  
  24. LocalFunction();
  25.  
  26. void LocalFunction()
  27. {
  28. _privateInstance = LocalConst;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement