In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
[mono.git] / mcs / class / System / System.CodeDom / CodePropertyReferenceExpression.cs
index 84b650b7b4dce0807a9c1ba97672d91bc6e5e8aa..44f0222770471b1509995a4920a02a1563f8245c 100644 (file)
@@ -6,8 +6,7 @@
 //   Daniel Stodden (stodden@in.tum.de)
 //
 // (C) 2001 Ximian, Inc.
-//
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -61,6 +60,9 @@ namespace System.CodeDom
                //
                public string PropertyName {
                        get {
+                               if (propertyName == null) {
+                                       return string.Empty;
+                               }
                                return propertyName;
                        }
                        set {
@@ -76,5 +78,13 @@ namespace System.CodeDom
                                targetObject = value;
                        }
                }
+
+               //
+               // ICodeDomVisitor method
+               //
+               internal override void Accept (ICodeDomVisitor visitor)
+               {
+                       visitor.Visit (this);
+               }
        }
 }