// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System;
using System.Reflection;
using System.Collections;
OutlineParams (method.GetParameters ());
o.Write (")");
-#if NET_2_0
WriteGenericConstraints (t.GetGenericArguments ());
-#endif
o.WriteLine (";");
return;
if (underlyingType != typeof (int))
o.Write (" : {0}", FormatType (underlyingType));
}
-#if NET_2_0
+
WriteGenericConstraints (t.GetGenericArguments ());
-#endif
+
o.WriteLine (" {");
o.Indent++;
}
o.Write (mi.Name);
-#if NET_2_0
o.Write (FormatGenericParams (mi.GetGenericArguments ()));
-#endif
o.Write (" (");
OutlineParams (mi.GetParameters ());
o.Write (")");
-#if NET_2_0
WriteGenericConstraints (mi.GetGenericArguments ());
-#endif
o.Write (";");
}
}
}
-#if NET_2_0
string FormatGenericParams (Type [] args)
{
StringBuilder sb = new StringBuilder ();
sb.Append (">");
return sb.ToString ();
}
-#endif
// TODO: fine tune this so that our output is less verbose. We need to figure
// out a way to do this while not making things confusing.
void GetTypeName (StringBuilder sb, Type t)
{
sb.Append (RemoveGenericArity (t.Name));
-#if NET_2_0
sb.Append (FormatGenericParams (t.GetGenericArguments ()));
-#endif
}
string GetFullName (Type t)
void GetFullName_recursed (StringBuilder sb, Type t, bool recursed)
{
-#if NET_2_0
if (t.IsGenericParameter) {
sb.Append (t.Name);
return;
}
-#endif
if (t.DeclaringType != null) {
GetFullName_recursed (sb, t.DeclaringType, true);
GetTypeName (sb, t);
}
-#if NET_2_0
void WriteGenericConstraints (Type [] args)
{
}
}
}
-#endif
string OperatorFromName (string name)
{
}
}
}
+
+#endif
\ No newline at end of file