Example #1
0
 /// <summary>
 /// 重写通知方法
 /// </summary>
 public override void update(Subject subject)
 {
     Console.WriteLine($"Binary String:{ Convert.ToString(subject.getState(), 2)}");
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="subject"></param>
 public override void update(Subject subject)
 {
     Console.WriteLine($"Hexa String {Convert.ToString(subject.getState(), 16)}");
 }