Get Value

  • Thread starter Thread starter Walter
  • Start date Start date
W

Walter

Hi

i have the following source in VB.NET

txtKSRServer.Text = m_SetupData.CustomProperties["Servername"].Value

' (SetupData = interface)

how can i read the value from ["Servername"] in C#

i tried it with this

this.txtKSRServer.Text = (string)
m_SetupData.CustomProperties.GetType().InvokeMember("Servername",
BindingFlags.Default | BindingFlags.GetProperty, null, m_SetupData, new
object [] {});

but i always get en exception. :o(

Could someone help me

Many thanks

Walter
 
Back
Top