I need a list of Active Directory fields dynamically - meaning - that i should pass the domain and it should display the list of active directory fields for that domain.

thanks,
jeet

You can use the IDictionary interface. All you have to do is pass the field (AD attribute field) to Dictionary and pass the ResultProperty or The value from the cell to it as its key, then iterate through it.

private Dictionary<string, ResultProperty>[] GetDataReader(string Fields, string Table, string Conditions)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.