TechSapphire Monday, 2024-12-09, 4:43 PM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Memento Design Pattern

     

    —Memento allows you to keep snapshot of original object state which can be reverted any moment of time.
    —In other words, Memento is a way with which you can capture internal state of any object without violating encapsulation.
    —It is type of behavioral pattern.
     
    With memento pattern you can keep original state of object with it self so that on time when you want to revert the changes or you want to check whether object is modified or not you can use original clone of object along with that you can get which property is modified. Memento pattern is widely used in standard ADO.NET application as even in disconnected approach you are still able to hold original state of object.

    Click here to download code.

    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024