c# - Question Mark (?) after session variable reference - What does that mean -


i have had code snippet comes modify. in there found such syntax.

session("lightboxid")?.tostring() 

i didn't understand question mark (?) there means. no googling helped me hint

it performs null-check on session("lightboxid") before attempting call .tostring() on it.

msdn: null-conditional operators (c# , visual basic)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -