public object ReplaceElements(object original, object target, ICollectionPersister persister, object owner, IDictionary copyCache, ISessionImplementor session) { IDefaultableList result = (IDefaultableList)target; result.Clear(); foreach (object o in (IDefaultableList)original) { result.Add(o); } return(result); }