Class with proprties that haven't been set
Posted
by koumides
on Stack Overflow
See other posts from Stack Overflow
or by koumides
Published on 2010-04-29T12:54:45Z
Indexed on
2010/04/29
12:57 UTC
Read the original article
Hit count: 161
Hello there,
I am creating a class in C# which eventually will be part of a library that other uses can use. A user of this class has to set some properties and then use a public method to retrieve the results. What shall I do when a user calls the method without setting all the properties? Throw exception and expect the user to catch it?
Thanks
© Stack Overflow or respective owner