I am trying to reconcile and post the edits. I would like to know if I can post the versions to two different parents. Could some one help me with c# coding on how to do this.
I don't think you can directly rec&post directly to both parents.
In ArcMap, you get this error:
But you can rec&post to a common ancestor version (grandparent, great-grandparent, etc), and then reconcile down the branch of the second parent that you want to post to.
You can rec&post with the IVersionEdit interfaces in ArcObjects http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000m0v000000