[Mono-dev] PATCH SiteMapNode
Chris Toshok
toshok at ximian.com
Tue Apr 11 08:03:59 EDT 2006
This patch isn't necessary. comparison works just fine in the face of
null values.
Chris
On Tue, 2006-04-11 at 02:51 -0700, Andrew Skiba wrote:
> Use properties instead of fields to protect from null values. If no one
> objects, I will commit.
>
>
> Index: SiteMapNode.cs
> ===================================================================
> --- SiteMapNode.cs (revision 59261)
> +++ SiteMapNode.cs (working copy)
> @@ -249,10 +249,10 @@
> SiteMapNode node = ob as SiteMapNode;
> if (node == null) return false;
>
> - if (node.key != key ||
> - node.url != url ||
> - node.title != title ||
> - node.description != description)
> {
> + if (node.Key != Key ||
> + node.Url != Url ||
> + node.Title != Title ||
> + node.Description != Description)
> {
> return false;
> }
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list