Maybe someone wanted to make sure that a mapping framework (like .net EntityFramework) made a nullable string out of it :laugh:
D
dakovinc
@dakovinc
Posts
-
Found this today -
I hope this is not contagious...Konstanten is German for Constants. So this seems to be a class with const and readonly properties.
-
Model lost in spaceSadly, no. (or almost never) This is especially true for the users of the program where this code came from. :(
-
Model lost in spaceFor god's sake! Luckily, it isn't a web app!
-
Model lost in spaceIn the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(