Content deleted Content added
→Code examples: Corrected code example where a null return value would have caused the casting to crash |
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)
|