Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-02-15 00:13:45 +0300
committerMartin Baulig <martin@novell.com>2006-02-15 00:13:45 +0300
commit1bf952e7879a1827267f3677010cd4f89445f747 (patch)
tree6adb37a6fbdd469912454d544852137e7939447b /mcs/gmcs/typemanager.cs
parent05a87ebd50ee9261bdd7047f41e001214d6e73af (diff)
2006-02-14 Martin Baulig <martin@ximian.com>
* *.cs: Use `Type.IsGenericType' instead of `Type.IsGenericInstance'. svn path=/trunk/mcs/; revision=56869
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index 83b5fc873f1..bf64ce6cda9 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -517,7 +517,7 @@ public partial class TypeManager {
return (Type) ret;
}
- if (t.IsGenericParameter || t.IsGenericInstance) {
+ if (t.IsGenericParameter || t.IsGenericType) {
int pos = 0;
Type result = t;
while ((pos < dim.Length) && (dim [pos] == '[')) {
@@ -1405,7 +1405,7 @@ public partial class TypeManager {
return (MemberInfo []) list;
}
- if (t.IsGenericInstance && (mt == MemberTypes.NestedType)) {
+ if (t.IsGenericType && (mt == MemberTypes.NestedType)) {
//
// This happens if we're resolving a class'es base class and interfaces
// in TypeContainer.DefineType(). At this time, the types aren't
@@ -1862,7 +1862,7 @@ public partial class TypeManager {
//
static public FieldBase GetField (FieldInfo fb)
{
- if (fb.DeclaringType.IsGenericInstance)
+ if (fb.DeclaringType.IsGenericType)
fb = fb.Mono_GetGenericFieldDefinition ();
return (FieldBase) fieldbuilders_to_fields [fb];
@@ -2073,7 +2073,7 @@ public partial class TypeManager {
if (t.IsArray)
t = TypeManager.array_type;
- if ((t is TypeBuilder) || t.IsGenericInstance) {
+ if ((t is TypeBuilder) || t.IsGenericType) {
Type [] base_ifaces;
if (t.BaseType == null)
@@ -2081,7 +2081,7 @@ public partial class TypeManager {
else
base_ifaces = GetInterfaces (t.BaseType);
Type[] type_ifaces;
- if (t.IsGenericInstance)
+ if (t.IsGenericType)
type_ifaces = t.GetInterfaces ();
else
type_ifaces = (Type []) builder_to_ifaces [t];