Пример #1
0
        public virtual void Update(AbstractColleague source)
        {
            Type t            = this.GetType();
            var  updateMethod = t.GetMethod("UpdateBy" + source.GetType().Name, BindingFlags.Instance | BindingFlags.NonPublic);

            updateMethod.Invoke(this, new object[] { source });
        }
Пример #2
0
 protected override void UpdateByColleagueC(AbstractColleague source)
 {
     Data = ((int)source.Data) * 100;
 }
Пример #3
0
 protected override void UpdateByColleagueA(AbstractColleague source)
 {
 }
Пример #4
0
 protected abstract void UpdateByColleagueC(AbstractColleague source);