Merge pull request #1709 from atsushieno/import-codedom-core
[mono.git] / mcs / class / System / System.CodeDom / CodeMethodReferenceExpression.cs
index 0867344d656953892059c6af7200d35abae2b3c4..40da67b68d793464bfaa88fb678259de12a3cd4c 100644 (file)
@@ -41,9 +41,7 @@ namespace System.CodeDom
        {
                private string methodName;
                private CodeExpression targetObject;
-#if NET_2_0
                CodeTypeReferenceCollection typeArguments;
-#endif
                
                //
                // Constructors
@@ -59,7 +57,6 @@ namespace System.CodeDom
                        this.methodName = methodName;
                }
 
-#if NET_2_0
                public CodeMethodReferenceExpression (CodeExpression targetObject, 
                        string methodName, params CodeTypeReference[] typeParameters) :
                        this (targetObject, methodName)
@@ -67,7 +64,6 @@ namespace System.CodeDom
                        if (typeParameters != null && typeParameters.Length > 0)
                                TypeArguments.AddRange (typeParameters);
                }
-#endif
 
                //
                // Properties
@@ -93,7 +89,6 @@ namespace System.CodeDom
                        }
                }
 
-#if NET_2_0
                [ComVisible (false)]
                public CodeTypeReferenceCollection TypeArguments {
                        get {
@@ -102,6 +97,13 @@ namespace System.CodeDom
                                return typeArguments;
                        }
                }
-#endif
+
+               //
+               // ICodeDomVisitor method
+               //
+               internal override void Accept (ICodeDomVisitor visitor)
+               {
+                       visitor.Visit (this);
+               }
        }
 }