I have Linkedlist objects (can be changed to any other type of collection as long as it keeps the input order) in assembly A (DLL).
When Assembly B creates an object from a class that contains the LinkedList mentioned, it assigns a method to send some information. One of the arguments this method takes is called LinkedList.
Now I want this method in assembly B to be able to read this LinkedList (navigate through it and make stuff based on its contents), however I need this method not to change the data in the list.
While I use assembly A right now, when and if it becomes publicly available, I need to prevent data from being changed outside of my assembly so that no third-party users using the library can intercept the results in the assembly.
I am mainly looking to βsealβ a parameter that brings a LinkedList from assembly A to assembly B
Is there any reason?
source share