none
What is ? in C# RRS feed

Answers

  • This is C# 6 Null-conditional operators


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Proposed as answer by Wizend Saturday, December 2, 2017 5:52 PM
    • Marked as answer by Arash_89 Tuesday, December 26, 2017 10:55 PM
    Saturday, December 2, 2017 12:49 AM
    Moderator
  • Hello,

     In the context of your code example, basically defines the object as Type Nullable.

    See the following links for more details;

     https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/

     https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/how-to-identify-a-nullable-type

     Hope this helps :)

    Friday, December 1, 2017 11:46 PM

All replies

  • Hello,

     In the context of your code example, basically defines the object as Type Nullable.

    See the following links for more details;

     https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/

     https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/how-to-identify-a-nullable-type

     Hope this helps :)

    Friday, December 1, 2017 11:46 PM
  • This is C# 6 Null-conditional operators


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Proposed as answer by Wizend Saturday, December 2, 2017 5:52 PM
    • Marked as answer by Arash_89 Tuesday, December 26, 2017 10:55 PM
    Saturday, December 2, 2017 12:49 AM
    Moderator
  • Hello Arash_89,

    Do you have anything to update? If the issue has been solved, you could mark the helpful reply as answer. This can be beneficial to other community members reading this thread. Thanks a lot.

    Best regards,

    Neil Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, December 24, 2017 6:19 AM
    Moderator