A
Anderskj
Hi!
I am developing a c# application. I have an interface (which can change
therefore my problem)
If i do like this:
List<PropertyInfo> properties = new List<PropertyInfo>();
properties.AddRange(typeof(app.IView).GetProperties());
I get the correct properties on the interface (9 pcs)
Now i want to dynamically load the interface by textstring (comming from
config file) and do like this.
Type viewInterface = Type.GetType("app.IView");
properties.AddRange(typeof(app.IView).GetProperties());
I now get 57 properties!. These i guess comes from the Type class.
How do i Achive my goal to load the interface by textstring name and the get
the properties on the interface?
Thanks in regards
Anders Jacobsen, Denmark
I am developing a c# application. I have an interface (which can change
therefore my problem)
If i do like this:
List<PropertyInfo> properties = new List<PropertyInfo>();
properties.AddRange(typeof(app.IView).GetProperties());
I get the correct properties on the interface (9 pcs)
Now i want to dynamically load the interface by textstring (comming from
config file) and do like this.
Type viewInterface = Type.GetType("app.IView");
properties.AddRange(typeof(app.IView).GetProperties());
I now get 57 properties!. These i guess comes from the Type class.
How do i Achive my goal to load the interface by textstring name and the get
the properties on the interface?
Thanks in regards
Anders Jacobsen, Denmark