Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM Interop Pin
Heath Stewart21-Jan-04 3:42
protectorHeath Stewart21-Jan-04 3:42 
GeneralRe: COM Interop Pin
Ungi.21-Jan-04 20:23
Ungi.21-Jan-04 20:23 
GeneralGOT IT!!!! Pin
Ungi.28-Jan-04 2:14
Ungi.28-Jan-04 2:14 
Questionhow to avoid references Pin
Mephisto18720-Jan-04 3:44
Mephisto18720-Jan-04 3:44 
AnswerRe: how to avoid references Pin
Heath Stewart20-Jan-04 4:17
protectorHeath Stewart20-Jan-04 4:17 
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 4:54
Mephisto18720-Jan-04 4:54 
GeneralRe: how to avoid references Pin
Heath Stewart20-Jan-04 5:26
protectorHeath Stewart20-Jan-04 5:26 
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 22:12
Mephisto18720-Jan-04 22:12 
GeneralRe: how to avoid references Pin
Heath Stewart21-Jan-04 3:46
protectorHeath Stewart21-Jan-04 3:46 
GeneralRe: how to avoid references Pin
Mephisto18721-Jan-04 5:08
Mephisto18721-Jan-04 5:08 
AnswerRe: how to avoid references Pin
Jose Fco Bonnin20-Jan-04 5:30
Jose Fco Bonnin20-Jan-04 5:30 
GeneralRe: how to avoid references Pin
Jose Fco Bonnin20-Jan-04 6:01
Jose Fco Bonnin20-Jan-04 6:01 
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 22:28
Mephisto18720-Jan-04 22:28 
GeneralRe: how to avoid references Pin
Heath Stewart21-Jan-04 3:24
protectorHeath Stewart21-Jan-04 3:24 
AnswerRe: how to avoid references Pin
Paul Evans20-Jan-04 22:56
Paul Evans20-Jan-04 22:56 
GeneralSTRING MANIPULATION Pin
POKRI20-Jan-04 3:31
POKRI20-Jan-04 3:31 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 3:46
Larry J. Siddens20-Jan-04 3:46 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 4:12
protectorHeath Stewart20-Jan-04 4:12 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 5:59
Larry J. Siddens20-Jan-04 5:59 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 6:05
protectorHeath Stewart20-Jan-04 6:05 
If you read the documentation, this is just like Parse but it try/catches internally and returns a boolean if the value could be successfully parsed. If it could, the out param contains the value, something similar to this:
public static bool TryParse(string s, NumberStyles style,
  IFormatProvider provider, out double result)
{
  try
  {
    result = double.Parse(s, style, provider);
  }
  catch
  {
    return false;
  }
}
It just depends on whichever you want to use. If you don't want to handle exceptions yourself, use Double.TryParse.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 6:09
Larry J. Siddens20-Jan-04 6:09 
GeneralRe: STRING MANIPULATION Pin
Jose Fco Bonnin20-Jan-04 5:33
Jose Fco Bonnin20-Jan-04 5:33 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 5:42
protectorHeath Stewart20-Jan-04 5:42 
GeneralRe: STRING MANIPULATION Pin
leppie20-Jan-04 6:23
leppie20-Jan-04 6:23 
GeneralRe: STRING MANIPULATION Pin
Jose Fco Bonnin21-Jan-04 4:07
Jose Fco Bonnin21-Jan-04 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.