private static c# code example
Example 1: c# private public
public : Accès non restreint.
protected : Access is limited to the containing class or types derived from the containing class.
internal : Access is limited to the current assembly.
protected internal : Access is limited to the current assembly or types derived from the containing class.
private : Access is limited to the containing type.
private protected : Access is limited to the containing class or types derived from the containing class within the current assembly.
Example 2: static c#
(static) >> means that the method belongs to the Program class
and not an 'object' of the Program class.
Example 3: static class constructor c#
class SimpleClass
{
static readonly long baseline;
static SimpleClass()
{
baseline = DateTime.Now.Ticks;
}
}