Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
Last time I needed to extract the first element of ConnectorSet class, which implements IEnumerable interface. Thus I expected I could use LINQ extension method like:
myConnectorSet.FirstOrDefault()
But it's not available, why is that?
PS1: I used "using System.Linq"
PS2: I managed to get the first element with foreach loop, I'm only asking because I want to understand why LINQ methods are not available for *Set classes in Revit API
Solved! Go to Solution.