Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7795959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:13:24+00:00 2026-06-01T23:13:24+00:00

So first some info about the project; here is a class I created :

  • 0

So first some info about the project; here is a class I created :

    public class SendOverview
{
    public string id   { get; set;}

    public string method { get; set;}

    public SendOV Params {get; set;}

}

public class SendOV
{
    public string overviewID { get; set; }

    public string overviewType { get; set; }

    public string AORParams { get; set; }

    public SentDatas arrOptions { get; set; }


}
public class SentDatas
{
    public string columnInfo { get; set; }

    public string orderInfo { get; set; }

}

A pretty simple class where I want to serialize the whole thing (So, the SendOverview class) by creating an object as done here :

        SendOverview test1 = new SendOverview();
        test1.id = "1";
        test1.method = "getOverviewInfo";

        SendOV testOV = new SendOV();
        testOV.AORParams = null;
        testOV.overviewID = tempDID;
        testOV.overviewType = "Stock Items";


        SentDatas col1 = new SentDatas();
        col1.columnInfo = "1;100;1;1#";
        col1.orderInfo = "1;0;0#";

Now once I try to add the col1 data to testOV’s arrOptions I get a nullreference exception which blocks my work from any progress.. I have tried much, to no avail.

testOV.arrOptions[0] = col1;

is giving me the exception; Any help is highly appreciated..

(I know I have to create a List[] xx = new List[MAX] somewhere but I’m not able to implement it.)

COMPLIMENTARY QUESTION :

when sending the json string :
{\”id\”:\”1\”,\”method\”:\”getOverviewInfo\”,\”Params\”:{\”overviewID\”:\”0000004297\”,\”overviewType\”:\”Stock Items\”,\”AORParams\”:null,\”arrOptions\”:{\”columnInfo\”:\”1;100;1;1#\”,\”orderInfo\”:\”1;0;0#\”}}}”

All the named parameters should only have the value, not the named parameter; adjusted :

{\”id\”:\”1\”,\”method\”:\”getOverviewInfo\”,\”Params\”:{“0000004297\”,”Stock Items”,null,{\”columnInfo\”:\”1;100;1;1#\”,\”orderInfo\”:\”1;0;0#\”}}}”

Which JSON property should I add to get this effect?
Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:13:27+00:00Added an answer on June 1, 2026 at 11:13 pm

    I am not entirely sure I understand what it is you are after, but take a look at the following and see if I am on the right track.

    Update your class like so:

    public class SendOV
    {
        public string overviewID { get; set; }
    
        public string overviewType { get; set; }
    
        public string AORParams { get; set; }
    
        public List<SentDatas> arrOptions { get; set; }
    }
    

    And then update your creation code to this:

    SendOverview test1 = new SendOverview();
    test1.id = "1";
    test1.method = "getOverviewInfo";
    
    SendOV testOV = new SendOV();
    testOV.AORParams = null;
    testOV.overviewID = tempDID;
    testOV.overviewType = "Stock Items";
    
    List<SentDatas> sentDatasList = new List<SentDatas>();
    
    SentDatas col1 = new SentDatas();
    col1.columnInfo = "1;100;1;1#";
    col1.orderInfo = "1;0;0#";
    
    sentDatasList.Add(col1);
    
    testOV.arrOptions = sentDatasList;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just declared some code-first models for a new project that uses EntityFramework. public
I have created an R script that it needs to load some libraries first.
I save in a file some info about users (like number of times user
I want to make a function called debug that outputs some info about objects.
For my project, I need to store info about protocols (the data sent (most
I'm looking for the algorithm (C#) or some info about how detect the edge
I would like to get some data from both users' profiles (about their education,
I am just wondering if anyone have some info or feedback about the situation
I found some info about how to access the context from the subclass and
I had to show multiple (around 600, all clickable to show some info about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.