Search Results

Search found 2 results on 1 pages for 'jhunter'.

Page 1/1 | 1 

  • Negate the null-coalescing operator

    - by jhunter
    I have a bunch of strings I need to use .Trim() on, but they can be null. It would be much more concise if I could do something like: string endString = startString !?? startString.Trim(); Basically return the part on the right if the part on the left is NOT null, otherwise just return the null value. I just ended up using the ternary operator, but is there anyway to use the null-coalescing operator for this purpose?

    Read the article

  • Clickonce application does not update or launch.

    - by jhunter
    I have a winforms application that I have deployed using clickonce, but the users navigate to a network drive and double click on setup.msi instead of using a webpage to install it. I have two users that have it installed and it's worked in the past. I did an udpate last week and now when the users try to launch the application the window that says "Verifying Application Requirements" pops up then when it disappears nothing happens. The dialog asking if it's ok to update never pops up. The network people have verified that they have permissions on the network drive (though, I would expect an error message if this were the issue). Any clues what could cause this to happen?

    Read the article

1