Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.89 KB | None | 0 0
  1. /// <summary>
  2. /// Nazivi namespace-ova - PascalCase
  3. /// </summary>
  4. namespace OperativneEvidencije.Controllers
  5. {
  6.     /// <summary>
  7.     /// Komentari se pišu na našem jeziku, sve ostalo je na engleskom.
  8.     ///
  9.     /// Klase - PascalCase
  10.     /// </summary>
  11.     public class HomeController : Controller
  12.     {
  13.         public SystemCodes SystemCodes;         // public property              - PascalCase
  14.         private IUserBusiness _userBusiness;    // private/protected property   - _camelCase
  15.         private const int KONSTANTA = 5;        // const                        - UPPERCASE
  16.  
  17.         /// <summary>
  18.         /// Nazivi metoda - PascalCase
  19.         /// </summary>
  20.         /// <returns></returns>
  21.         public ActionResult Index()
  22.         {
  23.             var test = 5;                       // local variable               - camelCase
  24.  
  25.             return View();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement