2023-04-21

C# Trying to access content "member variables" values within a object? (Nullable

Here is info about our technical development environment :

• .NET 6

• C# 10

• Visual Studio 2022

Here is my code:

public class TestEntity
{
    public int TestMethod()
    {
        object? someObject = new
        {
            info_id = "TestItOutInfoId",
            customer_email_address = lin@newyork.com,
            subject = "Resolved",
            sent_date_time = DateTime.Now,
            sender_email_address = mac@don.com
       };

        someObject. Blah blah do Not know what method can access the aforementioned properties listed above. BlahBlah

        return 0;
    }
}

enter image description here

enter image description here

I could Not find anything on the internet that relates to code that will access the content "member variables" within a Nullable instance.

Furthermore, in the picture snapshot above, Visual Studio 2022 Intellisense does Not show any helpful methods that will allow me to access said content "member variables"

Could someone please respond by posting code that will allow me to access them?



No comments:

Post a Comment