Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -41,22 +41,11 @@ namespace Server.Diagnostics {
return prof;
}
private long _created, _started, _stopped;
public long Created { get; set; }
public long Created {
get => _created;
set => _created = value;
}
public long Started { get; set; }
public long Started {
get => _started;
set => _started = value;
}
public long Stopped {
get => _stopped;
set => _stopped = value;
}
public long Stopped { get; set; }
public TimerProfile( string name )
: base( name ) {
@ -65,7 +54,7 @@ namespace Server.Diagnostics {
public override void WriteTo( TextWriter op ) {
base.WriteTo( op );
op.Write( "\t{0,12:N0} {1,12:N0} {2,-12:N0}", _created, _started, _stopped );
op.Write( "\t{0,12:N0} {1,12:N0} {2,-12:N0}", Created, Started, Stopped );
}
}
}