Home › Forums › General XMetaL Discussion › Unable to call Range method GreaterThan from C#/COM-Interop › Reply To: Unable to call Range method GreaterThan from C#/COM-Interop
Reply to: Unable to call Range method GreaterThan from C#/COM-Interop
February 25, 2011 at 9:44 pmThere's another good article here specifically on this subject and how different versions of C# handle parameters:
http://msdn.microsoft.com/en-us/library/dd264739.aspx
Scroll down to the section labelled “COM Interfaces” for information that will relate directly to how you write your code to interact with XMetaL (or anything else via COM). I have not tested the C# 4.0 feature they discuss here called “named and optional arguments”, but if it works for MS Office applications using COM then in theory it should work for anything.