Click here to Skip to main content
15,302,644 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:

I have one list with data type of class and it is a nested list.

public partial class ProductDetail

        private Class1 lineOfBusinessTypeField;

private Class2 deductibleTypeField;


I want to remove one element inside one nested element.

How we can do this please help.

Thanks in advance
Srishti Gupta

What I have tried:

Trying to remove from list but not done
Updated 11-Jul-17 5:58am
Karthik_Mahalingam 11-Jul-17 23:19pm
Not clear,Use Improve question to add more info to the question.

1 solution

You must write a remove function in the outer class which also reconnects the predecessor with the successor of the removed element.

Maybe you only need to set the member to null?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900