/// <summary> /// Clones this instance. /// </summary> /// <typeparam name="T">The type of result to return.</typeparam> /// <param name="entity">The entity to clone.</param> /// <param name="cloneOption">The option.</param> /// <returns> /// A cloned instance of the current entity. /// </returns> public static T Clone <T>(this IEntity entity, CloneOption cloneOption) where T : class, IEntity { if (entity == null) { throw new ArgumentNullException("entity"); } return(entity.Clone(cloneOption).As <T>()); }
T IEntity.Clone <T>(CloneOption cloneOption) { throw new NotImplementedException( ); }
public IEntity Clone(CloneOption cloneOption) { return(_entity.Clone(cloneOption)); }
public T Clone <T>(CloneOption cloneOption) where T : class, IEntity { return(_entity.Clone <T>(cloneOption)); }
/// <summary> /// Clones this instance. /// </summary> /// <typeparam name="T">The expected type of the cloned entity.</typeparam> /// <param name="cloneOption">The option.</param> /// <returns> /// A cloned instance of the current entity. /// </returns> /// <exception cref="System.NotImplementedException"></exception> public T Clone <T>(CloneOption cloneOption) where T : class, IEntity { throw new NotImplementedException( ); }
/// <summary> /// Clones this instance. /// </summary> /// <param name="cloneOption">The option.</param> /// <returns> /// An in memory clone of the current entity. /// </returns> /// <exception cref="System.NotImplementedException"></exception> public IEntity Clone(CloneOption cloneOption) { throw new NotImplementedException( ); }
public T Clone <T>(CloneOption cloneOption) where T : class, IEntity { throw new NotSupportedException( ); }
public IEntity Clone(CloneOption cloneOption) { throw new NotSupportedException( ); }