I am not sure if mixins can help me. Generally this is the picture:

    public interface ISnapshot
    {
        int SnapshotId { get; set; }
    }
 
    public class Snapshot : ISnapshot
    {
        public int SnapshotId { get; set; }
    }
 
    public interface ISnapshotable<T> where T : ISnapshot
    {
        T CreateSnapshot();
        void RestoreFromSnapshot(T snapshot);
    }
 
    //  Missing at the moment
    public class FooSnapshot : Snapshot
    {
        public string Name_SnapshotProp { get; set; }
    }
 
    public class Foo : ISnapshotable<FooSnapshot>
    {
        public string Name { get; set; }
 
        //  Missing at the moment
        public FooSnapshot CreateSnapshot()
        {
            throw new System.NotImplementedException();
        }
 
        //  Missing at the moment
        public void RestoreFromSnapshot(FooSnapshot snapshot)
        {
            throw new System.NotImplementedException();
        }
    }

The classes and methods marked with //  Missing at the moment

does not exist at the moment and I am trying to create them with DP.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to