try {
field_type = ImportType (fi.FieldType, new DynamicTypeReader (fi));
+
+ //
+ // Private field has private type which is not fixed buffer
+ //
+ if (field_type == null)
+ return null;
} catch (Exception e) {
// TODO: I should construct fake TypeSpec based on TypeRef signature
// but there is no way to do it with System.Reflection
}
}
+ if (spec == null)
+ return null;
+
++dtype.Position;
tspec[index] = spec;
}
else
mod |= Modifiers.VIRTUAL;
}
+ } else if (parameters.HasExtensionMethodType) {
+ mod |= Modifiers.METHOD_EXTENSION;
}
}
return spec;
var targs = CreateGenericArguments (0, type.GetGenericArguments (), dtype);
+ if (targs == null)
+ return null;
if (declaringType == null) {
// Simple case, no nesting
spec = CreateType (type_def, null, new DynamicTypeReader (), canImportBaseType);