public virtual Conflict GetConflict()
{
if (!HasConflict())
{
return null;
}
Conflict conflict = null;
if (_currentEntryWrapper.IsConflict)
{
conflict = new SyncConflict()
{
LiveEntity = _liveEntity,
LosingEntity = ReflectionUtility.GetObjectForType(_currentEntryWrapper.ConflictWrapper, this._knownTypes),
Resolution = (SyncConflictResolution)Enum.Parse(FormatterConstants.SyncConflictResolutionType, _currentEntryWrapper.ConflictDesc, true)
};
}
else
{
conflict = new SyncError()
{
LiveEntity = _liveEntity,
ErrorEntity = ReflectionUtility.GetObjectForType(_currentEntryWrapper.ConflictWrapper, this._knownTypes),
Description = _currentEntryWrapper.ConflictDesc
};
}
return conflict;
}