Re: [Saxdotnet-devel] String.Empty vs. null
Brought to you by:
jeffrafter,
kwaclaw
From: Jeff R. <li...@je...> - 2005-01-13 18:54:58
|
> We really only have two cases: foo has a namespace, or it doesn't. > > Or did you mean something else? <snip/> >> <foo bar=""> >> Would the bar attribute's value be null or string.empty? > String.Empty. null would mean: no value. > This is the contradiction I am referring to... technically the value of bar is emtpy which is more or less null. But we make the distinction because it is helpful to know that even though there is no value, the attribute bar is present. This is the same as the xmlns="" declarations. Technically the value means null-- literally it is empty-- and it is helpful to be able to distinguish between the two (at least in editor applications)... Jeff |