Windows Azure Caching: Difference between revisions

Content deleted Content added
Rothja (talk | contribs)
Code examples: Corrected code example where a null return value would have caused the casting to crash
Rothja (talk | contribs)
m Code examples: Moved initialization of dataType object to top of method for readability
Line 58:
dataType GetUserData(string userid)
{
dataType data = null;
 
// Attempt to retrieve the user data from the cache:
object dataObject = Cache.Get(userid);
dataType data = null;
 
if (dataObject != null)