Hi,
This is my first post on this mailing list as I am quite new to the c#
programming language. So please be patient ;)
I am currently developing a small framework that can connect two properties
of two objects. Therefore I create a Connection object, that gets the input
object i and the PropertyInfo of the property that should be used as input,
and an output object o and the PropertyInfo of the property that acts as
the output. A call for creating the connection currently looks like this :
graph.AddConnection(
i, i.GetType().GetProperty("Input"),
o, o.GetType().GetProperty("Output"));
This is ok, but not satisfying for me :D.
I want the user of the framework to be able to create a connection like
this:
graph.AddConnection(i.Input, o.Output);
So by calling the properties "getter method" I want to get the object the
getter method is called on and the property info the getter method has
called for.
I don't even know if this possible, but would be great ;)
Thx for your help,
Marco