, , object. ...
public object()
{
}
, :
public sealed class Person
{
public string Name = string.Empty;
public string Firstname = string.Empty;
public string Middlename = string.Empty;
public string Fullname
{
get { return string.Concat(Name, Firstname, Middlename); }
}
}
:
public Person()
{
this.Name = string.Empty;
this.Firstname = string.Empty;
this.Middlename = string.Empty;
}
EDIT: if you use the .NET Reflector, you can parse the assemblies to see what is really happening.
source
share