Merge two Arrays data into one C#

ankit goel 766 Reputation points
2022-12-03T13:06:38.4+00:00

I am working on a c# windows project where i have two Object Arrays. Array1 contains data from the excel below.
266798-image.png

I have another array which contains data from the excel below
266763-image.png

I want to merge the both the arrays and produce a final array from which i can generate an excel array which has the data in the following format.

266836-image.png

Please suggest me a solution about how to merge the compare the data of two arrays and merge them to create a final single array. Thanks in advance .

Developer technologies C#
{count} votes

Accepted answer
  1. Jack J Jun 25,296 Reputation points
    2022-12-06T02:22:28.157+00:00

    @ankit goel , you could try the following code to Merge two Arrays data into one Array.

    code.txt

    Note: I could not post the related code in the answer, so I used txt file to replace it.

    Tested result:

    267592-image.png

    Best Regards,
    Jack


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.