Add method and Insert method

Write the difference between adding items into cache by a Add() method and by the Insert() method?

E

Expert

Verified

Both of these methods work in the similar way except that a Cache.Add() function returns the object which represents an item we added in a cache. Cache.Insert() function could replace the presented item in a cache, that is not possible using Cache.Add() method.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.