Interfaces.cs
author Thomas
Fri, 27 Jul 2018 11:13:34 +0200
changeset 2319 2b364b0fd2d0
parent 1444 2458d5d2d562
permissions -rw-r--r--
Some simplification and cleanup
     1 ´╗┐namespace pEp
     2 {
     3     /// <summary>
     4     /// Class to contain all interface definitions.
     5     /// </summary>
     6     internal static class Interfaces
     7     {
     8         /// <summary>
     9         /// Interface to support deep copy of objects.
    10         /// </summary>
    11         public interface ICopy<T>
    12         {
    13             /// <summary>
    14             /// Gets a deep copy of the object and all its data.
    15             /// </summary>
    16             /// <returns>The deep copy of the object.</returns>
    17             T Copy(); 
    18         }
    19 
    20         /// <summary>
    21         /// Interface to support resetting an object to its default state/values.
    22         /// </summary>
    23         public interface IReset
    24         {
    25             /// <summary>
    26             /// Resets the object to its default state/values.
    27             /// </summary>
    28             void Reset();
    29         }
    30     }
    31 }