Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Is it good to use ref Parameter with a COM Method in C#

Is it good to use ref Parameter with a COM Method in C#

Scheduled Pinned Locked Moved COM
csharpcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    madhankum
    wrote on last edited by
    #1

    Using C#, a COM Method uses ref Parameter and it works smoothly, But is it a good principle to use ref Parameters with COM Methods,

    N 1 Reply Last reply
    0
    • M madhankum

      Using C#, a COM Method uses ref Parameter and it works smoothly, But is it a good principle to use ref Parameters with COM Methods,

      N Offline
      N Offline
      Nathan Holt at EMOM
      wrote on last edited by
      #2

      madhankum wrote:

      Using C#, a COM Method uses ref Parameter and it works smoothly, But is it a good principle to use ref Parameters with COM Methods,

      That depends on what type you are referencing. Also, are you calling from C# to COM, or from COM to C#? Either way, is it possible for the data type you are referencing to chang on one side, but not the other? Nathan

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups