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
M

MarkyBoy768

@MarkyBoy768
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Test If Out Parameter has been assigned
    M MarkyBoy768

    Yeah, I suppose I wanted to have the option of either assigning the parameter before the function call or within it. I hoped this would have worked... private void SomeFunc(out string TStr) { if(TStr == null) TStr = ""; } But of course it doesn't. No worries ... I'll just use ref ... Thanks anyway.

    C#

  • Test If Out Parameter has been assigned
    M MarkyBoy768

    I thought I understood how Out worked until I found out that you could pass a value through to the function with it. In other words the out parameter can be assigned before the function call. The compiler insists that the parameter is assigned before return even though it could have been assigned prior to the function call. I suspect the answer is no - but is there any way to test if the parameter is assigned and if so get it's value. This would be useful.

    C#
  • Login

  • Don't have an account? Register

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