public override void CloneFrom(object source) { var obj = source as Category; if (obj != null) { ID = obj.ID; CategoryName = obj.CategoryName; } }