Hello am trying to learn C#, I came across this code from a C# tutorial:
Public Class A()
{
Public A () : this(capacity:10)
{
}
public int capacity
{
get { return _buffer.length;}
}
}
I just did not understand why he used :
between Public A ()
and this(capacity:10)
.
I did not know what to search for on Google so I decided to ask here.
My question is: what is this used for and why?