Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
AnswerRe: Correct a date in a textBox Pin
Bassam Saoud16-Dec-06 11:13
Bassam Saoud16-Dec-06 11:13 
Questiondataset changes Pin
fmardani16-Dec-06 7:43
fmardani16-Dec-06 7:43 
QuestionObject creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 7:23
Tony Lambert16-Dec-06 7:23 
AnswerRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 8:43
Guffa16-Dec-06 8:43 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 9:15
Tony Lambert16-Dec-06 9:15 
GeneralRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 11:43
Guffa16-Dec-06 11:43 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 12:10
Tony Lambert16-Dec-06 12:10 
AnswerRe: Object creation at internal condition in constructor Pin
Guffa16-Dec-06 13:45
Guffa16-Dec-06 13:45 
Tony Lambert wrote:
I just throw it, it raises the exception message and the constructor returns with the object reference in the caller method instead of null.


No, it doesn't. If you throw an exception in the constructor, the created object is never used. You don't get a reference to the object, as the reference is not assigned to any variable.

Tony Lambert wrote:
Actually, this is the missing part of the puzzle: how to destroy or give null operand to the object in its constructor or mark it as destroyable or return with null?


You can't do that, and you don't need to, as the reference to the object will never be used. Just make sure that the object is left in a state so that it can be garbage collected.

---
It's amazing to see how much work some people will go through just to avoid a little bit of work.

GeneralRe: Object creation at internal condition in constructor Pin
Larantz17-Dec-06 0:38
Larantz17-Dec-06 0:38 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert17-Dec-06 2:37
Tony Lambert17-Dec-06 2:37 
GeneralRe: Object creation at internal condition in constructor Pin
Larantz17-Dec-06 10:07
Larantz17-Dec-06 10:07 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert17-Dec-06 10:17
Tony Lambert17-Dec-06 10:17 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert17-Dec-06 2:44
Tony Lambert17-Dec-06 2:44 
AnswerRe: Object creation at internal condition in constructor Pin
Guffa17-Dec-06 8:34
Guffa17-Dec-06 8:34 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert17-Dec-06 9:14
Tony Lambert17-Dec-06 9:14 
GeneralRe: Object creation at internal condition in constructor Pin
Guffa17-Dec-06 9:41
Guffa17-Dec-06 9:41 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert17-Dec-06 10:13
Tony Lambert17-Dec-06 10:13 
AnswerRe: Object creation at internal condition in constructor Pin
Luc Pattyn16-Dec-06 8:53
sitebuilderLuc Pattyn16-Dec-06 8:53 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 12:22
Tony Lambert16-Dec-06 12:22 
AnswerRe: Object creation at internal condition in constructor Pin
ejuanpp16-Dec-06 10:25
ejuanpp16-Dec-06 10:25 
GeneralRe: Object creation at internal condition in constructor Pin
Tony Lambert16-Dec-06 11:53
Tony Lambert16-Dec-06 11:53 
AnswerRe: Object creation at internal condition in constructor Pin
Karthik Kalyanasundaram16-Dec-06 16:44
Karthik Kalyanasundaram16-Dec-06 16:44 
Questionneed a Network Programming with VC#2005 pdf,Ebook,article. Pin
hdv21216-Dec-06 6:50
hdv21216-Dec-06 6:50 
AnswerRe: need a Network Programming with VC#2005 pdf,Ebook,article. Pin
Tony Lambert16-Dec-06 7:54
Tony Lambert16-Dec-06 7:54 
GeneralRe: need a Network Programming with VC#2005 pdf,Ebook,article. Pin
hdv21216-Dec-06 9:29
hdv21216-Dec-06 9:29 

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.