Roshan Gurung
  • Hello world
  • Programming
    • Clean Coding Principles
    • .NET
      • Get the keys with model state errors in MVC
      • Null Propagation Operator in C#
      • Add objects to a list without using loop
      • Convert an image (selected by path) to base64 string
      • Escape character for & in webconfig settings
    • Database
      • Update with join in mysql
Powered by GitBook
On this page

Was this helpful?

  1. Programming
  2. .NET

Null Propagation Operator in C#

Handles system.NullReferenceException

?. -> member access operator

?[ ]. -> element access operator

?? -> null coalescing operator

PreviousGet the keys with model state errors in MVCNextAdd objects to a list without using loop

Last updated 4 years ago

Was this helpful?