none
c# equivalent RRS feed

Answers

  • Hi,

    Or you could also use multiple overloads to define the same interop call with all the signatures you need...


    Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".

    Monday, April 15, 2013 10:18 AM
  • This depends on the usage, but Object is the first choice.

    Keep in mind that you may need to box/cast values back and forth, which was not necessary under most circumstances in VB6.

    Monday, April 15, 2013 7:14 AM
  • You can use "var" or use the "object" as the type of the data, you can cast it based on the data as per the need but "var" is pretty cool!

    you can read more abt it on below links,

    http://msdn.microsoft.com/en-us/library/bb383973.aspx

    http://msdn.microsoft.com/en-us/library/9kkx3h3c%28v=vs.80%29.aspx

    http://www.dotnetperls.com/var

    http://msdn.microsoft.com/en-us/library/bb384061.aspx



    Wednesday, April 17, 2013 11:11 PM

All replies

  • This depends on the usage, but Object is the first choice.

    Keep in mind that you may need to box/cast values back and forth, which was not necessary under most circumstances in VB6.

    Monday, April 15, 2013 7:14 AM
  • Hi,

    Or you could also use multiple overloads to define the same interop call with all the signatures you need...


    Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".

    Monday, April 15, 2013 10:18 AM
  • You can use "var" or use the "object" as the type of the data, you can cast it based on the data as per the need but "var" is pretty cool!

    you can read more abt it on below links,

    http://msdn.microsoft.com/en-us/library/bb383973.aspx

    http://msdn.microsoft.com/en-us/library/9kkx3h3c%28v=vs.80%29.aspx

    http://www.dotnetperls.com/var

    http://msdn.microsoft.com/en-us/library/bb384061.aspx



    Wednesday, April 17, 2013 11:11 PM