Click here to Skip to main content
15,885,757 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionasp.net Help Pin
AmitaThaker23-Nov-05 2:50
AmitaThaker23-Nov-05 2:50 
QuestionCalling dll functions in .net Pin
ramenk23-Nov-05 1:08
ramenk23-Nov-05 1:08 
QuestionTypeLib for interop assembly changes case of method name Pin
turbochimp22-Nov-05 14:30
turbochimp22-Nov-05 14:30 
QuestionRemoting .Net Pin
adam_smith_200322-Nov-05 2:29
adam_smith_200322-Nov-05 2:29 
QuestionI'm Seeking SQL Connection Check Solution Pin
Ahmed Erarslan22-Nov-05 0:45
Ahmed Erarslan22-Nov-05 0:45 
GeneralRe: I'm Seeking SQL Connection Check Solution Pin
toxcct22-Nov-05 6:07
toxcct22-Nov-05 6:07 
AnswerRe: I'm Seeking SQL Connection Check Solution Pin
jonathan1523-Nov-05 1:24
jonathan1523-Nov-05 1:24 
QuestionThrowing exceptions in properties Pin
Ray Cassick21-Nov-05 14:42
Ray Cassick21-Nov-05 14:42 
What is the general consensus on this idea?

According to the series of videos I have been following on MS about designing class libraries, you really should not throw exceptions in property setters. But, if you don't then how are you to signal the user that you have set a value that is not correct?

For example I have a property that takes a Guid value. Inside the property I want to make sure that the value supplied is a correct Guid (ie: formatting, length, etc...) and I am using regex for that, but if I determine an incorrect value what should be the way I signal the user?



George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.

My Blog[^]


AnswerRe: Throwing exceptions in properties Pin
Christian Graus21-Nov-05 15:17
protectorChristian Graus21-Nov-05 15:17 
GeneralRe: Throwing exceptions in properties Pin
Ray Cassick21-Nov-05 17:49
Ray Cassick21-Nov-05 17:49 
AnswerRe: Throwing exceptions in properties Pin
S. Senthil Kumar27-Nov-05 20:10
S. Senthil Kumar27-Nov-05 20:10 
QuestionWhich assemblies are required for an app to run? Pin
khariv21-Nov-05 6:48
khariv21-Nov-05 6:48 
AnswerRe: Which assemblies are required for an app to run? Pin
Curtis Schlak.26-Nov-05 15:37
Curtis Schlak.26-Nov-05 15:37 
Question.Net client and Java server integration Pin
Lkotzer21-Nov-05 3:25
Lkotzer21-Nov-05 3:25 
QuestionGetChildAtPoint to get Control Out of Screen? Pin
tsunsau71720-Nov-05 17:10
tsunsau71720-Nov-05 17:10 
AnswerRe: GetChildAtPoint to get Control Out of Screen? Pin
Dave Kreskowiak23-Nov-05 3:49
mveDave Kreskowiak23-Nov-05 3:49 
GeneralRe: GetChildAtPoint to get Control Out of Screen? Pin
tsunsau71723-Nov-05 4:37
tsunsau71723-Nov-05 4:37 
GeneralRe: GetChildAtPoint to get Control Out of Screen? Pin
Dave Kreskowiak23-Nov-05 5:31
mveDave Kreskowiak23-Nov-05 5:31 
Questiondocumentation .net framework 2.0 sdk Pin
rudi_5320-Nov-05 10:44
rudi_5320-Nov-05 10:44 
AnswerRe: documentation .net framework 2.0 sdk Pin
MoustafaS20-Nov-05 10:49
MoustafaS20-Nov-05 10:49 
GeneralRe: documentation .net framework 2.0 sdk Pin
rudolf pichler22-Nov-05 0:48
rudolf pichler22-Nov-05 0:48 
AnswerRe: documentation .net framework 2.0 sdk Pin
MoustafaS22-Nov-05 1:13
MoustafaS22-Nov-05 1:13 
Questionhelp me , about WMI Pin
newpant19-Nov-05 18:05
newpant19-Nov-05 18:05 
AnswerRe: help me , about WMI Pin
Dave Kreskowiak23-Nov-05 3:47
mveDave Kreskowiak23-Nov-05 3:47 
GeneralRe: help me , about WMI Pin
newpant23-Nov-05 14:40
newpant23-Nov-05 14:40 

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.