Tommy Sin

Tommy Sin

  • NA
  • 19
  • 104.3k

Regarding C# syntax

Feb 10 2011 10:12 AM

I do not understand the return statement, can anyone explain what ?, : does and explain about the return statement?
Thanks
public
IAppTools Get(string appToolName)
{
if (string.IsNullOrEmpty(appToolName))
appToolName =
Constants.APP_TOOL_NAME_DEFAULT;
return _appTools.ContainsKey(appToolName) ? _appTools[appToolName] : null;
}
 

Answers (3)