Base interface for serializable NetDiagram objects.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public interface IPersists |
Visual Basic Copy Code |
---|
Public Interface IPersists |
Serializable NetDiagram classes implement explicitly this interface to hide it from the public. Explicit implementation however has the restrictions that the implemented methods are private and non-polymorphic. To avoid these limitations each implementing class provides another set of methods corresponding to the IPersists methods, which are declared as internal and retain polymorphism.
The following sample class illustrates this technique:
C# Copy Code |
---|
class PersistingItem : IPersists |