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

@ -127,19 +127,17 @@ namespace Server.Engines.Help
public class SpeechLogEntry
{
private Mobile m_From;
private string m_Speech;
private DateTime m_Created;
public Mobile From { get; }
public Mobile From => m_From;
public string Speech => m_Speech;
public DateTime Created => m_Created;
public string Speech { get; }
public DateTime Created { get; }
public SpeechLogEntry( Mobile from, string speech )
{
m_From = from;
m_Speech = speech;
m_Created = DateTime.UtcNow;
From = from;
Speech = speech;
Created = DateTime.UtcNow;
}
}
}