Browse Source

[Modify] Replace it

pull/117/merge
sta 4 years ago
parent
commit
6f4a9c7f52
  1. 13
      Example3/Chat.cs

13
Example3/Chat.cs

@ -12,13 +12,18 @@ namespace Example3
private string _prefix;
public Chat ()
: this (null)
{
_prefix = "anon#";
}
public Chat (string prefix)
{
_prefix = !prefix.IsNullOrEmpty () ? prefix : "anon#";
public string Prefix {
get {
return _prefix;
}
set {
_prefix = !value.IsNullOrEmpty () ? value : "anon#";
}
}
private string getName ()

Loading…
Cancel
Save