[Mono-dev] PATCH SiteMapNode

Andrew Skiba andrews at mainsoft.com
Tue Apr 11 05:51:42 EDT 2006


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;
 			}
 			



More information about the Mono-devel-list mailing list