#region CPL License
/*
Nuclex Framework
Copyright (C) 2002-2010 Nuclex Development Labs
This library is free software; you can redistribute it and/or
modify it under the terms of the IBM Common Public License as
published by the IBM Corporation; either version 1.0 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
IBM Common Public License for more details.
You should have received a copy of the IBM Common Public
License along with this library
*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nuclex.Support.Cloning {
#if false
/// An action that takes its arguments as references to a structure
/// Type of the first argument to the method
/// Type of the second argument to the method
/// First argument to the method
/// Second argument to the method
public delegate void ReferenceAction(ref TFirst first, ref TSecond second)
where TFirst : struct
where TSecond : struct;
///
/// Cloning factory which uses expression trees to improve performance when cloning
/// is a high-frequency action.
///
public class ExpressionTreeCloneFactory : ICloneFactory {
///
/// Creates a deep clone of the specified object, also creating clones of all
/// child objects being referenced
///
/// Type of the object that will be cloned
/// Object that will be cloned
///
/// Whether to clone the object based on its properties only
///
/// A deep clone of the provided object
public TCloned DeepClone(TCloned objectToClone, bool usePropertyBasedClone)
where TCloned : new() {
throw new NotImplementedException();
}
///
/// Creates a shallow clone of the specified object, reusing any referenced objects
///
/// Type of the object that will be cloned
/// Object that will be cloned
///
/// Whether to clone the object based on its properties only
///
/// A shallow clone of the provided object
public TCloned ShallowClone(TCloned objectToClone, bool usePropertyBasedClone)
where TCloned : new() {
throw new NotImplementedException();
}
///
/// Transfers the state of one object into another, creating clones of referenced objects
///
/// Type of the object whose sate will be transferred
/// Original instance the state will be taken from
/// Target instance the state will be written to
/// Whether to perform a property-based state copy
public void DeepCopyState(TState original, TState target, bool propertyBased)
where TState : class {
throw new NotImplementedException();
}
///
/// Transfers the state of one object into another, creating clones of referenced objects
///
/// Type of the object whose sate will be transferred
/// Original instance the state will be taken from
/// Target instance the state will be written to
/// Whether to perform a property-based state copy
public void DeepCopyState(ref TState original, ref TState target, bool propertyBased)
where TState : struct {
throw new NotImplementedException();
}
/// Transfers the state of one object into another
/// Type of the object whose sate will be transferred
/// Original instance the state will be taken from
/// Target instance the state will be written to
/// Whether to perform a property-based state copy
public void ShallowCopyState(TState original, TState target, bool propertyBased)
where TState : class {
throw new NotImplementedException();
}
/// Transfers the state of one object into another
/// Type of the object whose sate will be transferred
/// Original instance the state will be taken from
/// Target instance the state will be written to
/// Whether to perform a property-based state copy
public void ShallowCopyState(ref TState original, ref TState target, bool propertyBased)
where TState : struct {
throw new NotImplementedException();
}
///
/// Compiles a method that copies the state of one object into another object
///
/// Type of object whose state will be copied
/// Whether to create clones of the referenced objects
/// A method that copies the state from one object into another object
public static Action CreateReferenceCopier(bool deepClone)
where TCloned : class {
throw new NotImplementedException();
}
///
/// Compiles a method that copies the state of one object into another object
///
/// Type of object whose state will be copied
/// Whether to create clones of the referenced objects
/// A method that copies the state from one object into another object
public static ReferenceAction CreateValueCopier(bool deepClone)
where TCloned : struct {
throw new NotImplementedException();
}
/// Compiles a method that creates a clone of an object
/// Type of object that will be cloned
/// Whether to create clones of the referenced objects
/// A method that clones an object of the provided type
public static Func CreateCloner(bool deepClone)
where TCloned : class, new() {
throw new NotImplementedException();
}
}
#endif
} // namespace Nuclex.Support.Cloning