LINQ - Does the Where expression return new instance or reference to object instance

后端 未结 5 1812
自闭症患者
自闭症患者 2021-01-31 15:01

This is probably a basic question for some, but it affects how I design a piece of my program.

I have a single collection of type A:

IEnumerable         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-31 15:31

    They are same objects. Where only filters, Select produces (can produce) new instances.

提交回复
热议问题