F # - how can I index a collection (in particular, PropertyCollection)

I am trying to ponder over F #, so I thought it would be interesting to convert some simple C # code that I have that scans the user in Active Directory using the System.DirectoryServices namespace and returns a DirectoryEntry object. The part I'm struggling with is indexing the PropertyCollection contained in DirectoryEntry.

In C #, when I have DirectoryEntry, I can get the properties in the PropertyCollection by doing the following:

entry.Properties["displayName"].Value

I am currently struggling with how to index a collection in F #. Can anyone shed some light on this?

+3
source share
1 answer

. .

entry.Properties.["displayName"].Value

++/#, , , .

+7

Source: https://habr.com/ru/post/1777783/


All Articles