1 /******************************************************************************
2 Style Guidelines:
3 * Readability - code is easy to read and to understand
4 * Standardisation - all team members are aligned with same code style
5 * Self-descriptive code - code is easy to understand without comments
6 * Debuggable - code is easy to debug (IDE friendly)
7 ******************************************************************************/8 9 // using (imports) of other namespaces will be wrapped with region "Using"10 #region Using11 using MyNameSpace.Delegates;12 #endregion13 14 // types are defined within the scope of namespace15 // space name starts with Upper case letter16 // each following word starts with upper Case letter17 // sub-spaces are divided by '.' (dot)18 // here "MyNameSpace" is main space and "Interfaces" is sub-space19 namespace MyNameSpace.Interfaces20 {21 /// <summary>22 /// type name starts with Upper case letter23 /// each following word starts with Upper case letter24 /// <remarks>25 /// type = class, enum, struct, delegate. interface, etc26 /// </remarks>27 /// </summary>28 public interface IMyInterface29 {30 /// <summary>31 /// public event name starts with Upper case letter32 /// each following word starts with Upper case letter33 /// </summary>34 event MyDelegate MyEvent;35 36 /// <summary>37 /// property name starts with Upper case letter38 /// each following word starts with Upper case letter39 /// <remarks>40 /// getter or setter will be defined if public access is necessary41 /// </remarks>42 /// </summary>43 int MyIntProperty { get; }44 45 /// <summary>46 /// method name starts with Upper case letter47 /// each following word starts with Upper case letter48 /// </summary>49 /// <param name="numericValue">50 /// parameter name starts with lower case letter51 /// each following word starts with Upper case letter52 /// </param>53 void MyMethod(int numericValue);54 }55 }