c# - Can LINQ put data into a data structure? -
I am researching LINQ, such as the ability to work with data, a selection criterion (a single data / Line / structure / etc using an Associative Data Structure like a tree or Basar), but there can not be any way of data / updates / insert etc. in the lists, table, array etc. It seems a very clear asymmetry, but perhaps when it gives a vivid desire to upgrade the amazing mansion of the Marveling of Microsoft's metric in Visual Studio 2020
I know that LINQ has a SQL database against such a But for any application, 2-3 orders of magnitude are very slow. I am interested in. The preferred language is C # or C ++.
There is no null LINQ support for adding data to data structures?
Am I missing something?
stands for LINQ:
Language Integrated Question The entire feature is designed for query , not updating / updating the data collection, by doing so, unlike its original design Therefore, there is no plan to add any functionality (adwords) in it. It is at the original level, the idea of LINQ is that you can not change the given sequence, depending on the input sequence you create a new sequence , and maybe Some other information. So instead of adding a group of items to the list, you create a new list which is the result of the conclusion of the two sequences. If you just want to change each item in the list, you will use a foreach
foreach (diverse items in the sequence) items. Mutate (); . You should not use LINQ to do this. If you want a bunch of items removed from the sequence then you create a new sequence in which you want to include only those items by using
where to filter the items to be removed Are there.
Comments
Post a Comment