using ref to view error
Posted
by Avram
on Stack Overflow
See other posts from Stack Overflow
or by Avram
Published on 2010-05-05T14:30:54Z
Indexed on
2010/05/05
14:38 UTC
Read the original article
Hit count: 194
c#
|best-practices
Hello.
I working now on firm that using ref in every function.
The reason, is to catch errors.
There example :
//return true if the read is success
//otherwise writing to the error ,the problem
bool ReadFile(ref string error)
Question:
How do you catching errors?
Using ref,exceptions or other way?
© Stack Overflow or respective owner