Click here to Skip to main content
15,905,419 members
Home / Discussions / C#
   

C#

 
AnswerRe: Format Strings Pin
Anthony Mushrow31-Oct-07 10:46
professionalAnthony Mushrow31-Oct-07 10:46 
AnswerRe: Format Strings Pin
Luc Pattyn31-Oct-07 11:37
sitebuilderLuc Pattyn31-Oct-07 11:37 
QuestionBinding with BindingSource Pin
~~~Johnny~~~31-Oct-07 10:18
~~~Johnny~~~31-Oct-07 10:18 
QuestionFinding column names of a dataset?? Pin
Goalie3531-Oct-07 10:15
Goalie3531-Oct-07 10:15 
AnswerRe: Finding column names of a dataset?? Pin
pmarfleet31-Oct-07 10:25
pmarfleet31-Oct-07 10:25 
Questiontabcontrol Pin
8213001231-Oct-07 9:55
8213001231-Oct-07 9:55 
AnswerRe: tabcontrol Pin
Hesham Amin31-Oct-07 11:36
Hesham Amin31-Oct-07 11:36 
QuestionApplying Object values to another object dynamically Pin
shwaguy31-Oct-07 9:30
shwaguy31-Oct-07 9:30 
-I am querying MS AD Objects and want to transfer the properties to my own object with as little code as possible.
-I know that there are other ways around this like creating an XLM table to store values but think that might be too much overhead.

-If I cannot do something like what is below I will have to write a line for each propertry I want to retrieve.

-If I simply copy(not sure how to do this, I dont want to keep running the query) the object I will not be able to see a list of available properties in my IDE.:

Any comments or help?

<br />
Class MyClass<br />
{<br />
        private string cn;<br />
        private string sn;<br />
<br />
        public void GetADObjectInfo(string dn)<br />
        {<br />
            DirectoryEntry entry = new DirectoryEntry("LDAP://"+ dn);<br />
            foreach (string strAttrName in entry.Properties.PropertyNames)<br />
            {<br />
                try<br />
                {<br />
                    //this is the part I want done dynamically<br />
                    this.strAttrName =  (string)result.Properties[strAttName][0];               }<br />
                catch<br />
                {<br />
                }<br />
            }<br />
          }<br />
}<br />


with Regards,

shwa guy
AnswerRe: Applying Object values to another object dynamically Pin
eggsovereasy31-Oct-07 10:30
eggsovereasy31-Oct-07 10:30 
QuestionDebug Application Plug-in Pin
CJ131-Oct-07 8:42
professionalCJ131-Oct-07 8:42 
AnswerRe: Debug Application Plug-in Pin
Pete O'Hanlon31-Oct-07 11:31
mvePete O'Hanlon31-Oct-07 11:31 
AnswerRe: Debug Application Plug-in Pin
Pete O'Hanlon31-Oct-07 11:40
mvePete O'Hanlon31-Oct-07 11:40 
GeneralRe: Debug Application Plug-in Pin
CJ11-Nov-07 4:47
professionalCJ11-Nov-07 4:47 
Questionarraylist as datagrid source [modified] Pin
The Onslaught31-Oct-07 8:20
The Onslaught31-Oct-07 8:20 
AnswerRe: arraylist as datagrid source Pin
eggsovereasy31-Oct-07 9:00
eggsovereasy31-Oct-07 9:00 
GeneralRe: arraylist as datagrid source Pin
The Onslaught1-Nov-07 6:48
The Onslaught1-Nov-07 6:48 
QuestionGuarantee MainForm Focus on Startup Pin
Sukhjinder_K31-Oct-07 8:19
Sukhjinder_K31-Oct-07 8:19 
AnswerRe: Guarantee MainForm Focus on Startup Pin
Judah Gabriel Himango31-Oct-07 8:19
sponsorJudah Gabriel Himango31-Oct-07 8:19 
Questionhow to turn a datatabel on sql interrogation ? Pin
eraydeniz31-Oct-07 8:04
eraydeniz31-Oct-07 8:04 
AnswerRe: how to turn a datatabel on sql interrogation ? Pin
pmarfleet31-Oct-07 8:20
pmarfleet31-Oct-07 8:20 
Questionwhy does my meesage box take attention twice? Pin
gizmokaka31-Oct-07 6:39
gizmokaka31-Oct-07 6:39 
AnswerRe: why does my meesage box take attention twice? Pin
gizmokaka31-Oct-07 6:49
gizmokaka31-Oct-07 6:49 
GeneralRe: why does my meesage box take attention twice? Pin
Luc Pattyn31-Oct-07 7:05
sitebuilderLuc Pattyn31-Oct-07 7:05 
QuestionSemaphore-like sync mechanism beetween multiple computers Pin
SGAYET31-Oct-07 6:31
SGAYET31-Oct-07 6:31 
AnswerRe: Semaphore-like sync mechanism beetween multiple computers Pin
led mike31-Oct-07 7:16
led mike31-Oct-07 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.