* CodeParameterDeclarationExpressionCollection.cs: Use CollectionBase
[mono.git] / mcs / class / System / System.CodeDom / CodeMethodInvokeExpression.cs
old mode 100755 (executable)
new mode 100644 (file)
index 9c8f552..f1c85eb
@@ -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
@@ -68,6 +67,9 @@ namespace System.CodeDom
                //
                public CodeMethodReferenceExpression Method {
                        get {
+                               if (method == null) {
+                                       method = new CodeMethodReferenceExpression ();
+                               }
                                return method;
                        }
                        set {