R
Rene
I am reading a book that contains one line of code that I don't understand.
The line of code is supposed to be a constructor and is this:
protected NameValueList(SerializationInfo info, StreamingContext context) :
base(info, context)
{
}
This constructor is supposed to be necessary because the class inherits from
a class that implements ISerializable. The primary thing that I would like
to understand is the
: base(info, context)
part, what is the ":" doing there, is that some kind of inheritance or what?
Thank you.
The line of code is supposed to be a constructor and is this:
protected NameValueList(SerializationInfo info, StreamingContext context) :
base(info, context)
{
}
This constructor is supposed to be necessary because the class inherits from
a class that implements ISerializable. The primary thing that I would like
to understand is the
: base(info, context)
part, what is the ":" doing there, is that some kind of inheritance or what?
Thank you.