// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
+// Marek Safar (marek.safar@seznam.cz)
//
// (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
{
private string methodName;
private CodeExpression targetObject;
+#if NET_2_0
+ CodeTypeReferenceCollection typeArguments;
+#endif
//
// Constructors
this.methodName = methodName;
}
+#if NET_2_0
+ public CodeMethodReferenceExpression (CodeExpression targetObject,
+ string methodName, params CodeTypeReference[] typeParameters) :
+ this (targetObject, methodName)
+ {
+ if (typeParameters != null && typeParameters.Length > 0)
+ TypeArguments.AddRange (typeParameters);
+ }
+#endif
+
//
// Properties
//
public string MethodName {
get {
+ if (methodName == null) {
+ return string.Empty;
+ }
return methodName;
}
set {
targetObject = value;
}
}
+
+#if NET_2_0
+ [ComVisible (false)]
+ public CodeTypeReferenceCollection TypeArguments {
+ get {
+ if (typeArguments == null)
+ typeArguments = new CodeTypeReferenceCollection ();
+ return typeArguments;
+ }
+ }
+#endif
}
}