/// <summary>
 /// DeepClone object
 /// </summary>
 /// <param name="objectToBeCloned">Desire object to cloned</param>
 /// <param name="settings"></param>
 /// <returns></returns>
 public static T Clone <T>(this T objectToBeCloned, FastDeepClonerSettings settings) where T : class
 {
     return((T) new ReferenceClone(settings).Clone(objectToBeCloned));
 }
Exemple #2
0
 internal ClonerShared(FieldType fieldType)
 {
     _settings = new FastDeepClonerSettings {
         FieldType = fieldType
     };
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="objectToBeCloned">Desire object to cloned</param>
 /// <param name="settings"></param>
 /// <returns></returns>
 public static T Clone <T>(T objectToBeCloned, FastDeepClonerSettings settings) where T : class
 {
     return((T) new ClonerShared(settings).Clone(objectToBeCloned));
 }
Exemple #4
0
 internal ClonerShared(ICollection <PropertyInfo> ignoredPropertyInfos, FastDeepClonerSettings settings) : this(settings)
 {
     _ignoredPropertyInfos = ignoredPropertyInfos;
 }
Exemple #5
0
 internal ClonerShared(FastDeepClonerSettings settings)
 {
     _settings = settings;
 }