Author: jbevain
Date: 2005-06-28 18:05:47 -0400 (Tue, 28 Jun 2005)
New Revision: 46677
Modified:
trunk/cecil/lib/ChangeLog
trunk/cecil/lib/Mono.Cecil.Implem/LazyReflectionReader.cs
trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs
Log:
2005-06-28 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil.Implem/ReflectionReader.cs: style
* Mono.Cecil.Implem/LazyReflectionReader.cs:
read the last property as well.
Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog 2005-06-28 21:16:55 UTC (rev 46676)
+++ trunk/cecil/lib/ChangeLog 2005-06-28 22:05:47 UTC (rev 46677)
@@ -1,3 +1,9 @@
+2005-06-28 Jb Evain <[EMAIL PROTECTED]>
+
+ * Mono.Cecil.Implem/ReflectionReader.cs: style
+ * Mono.Cecil.Implem/LazyReflectionReader.cs:
+ read the last property as well.
+
2005-06-21 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil.Implem/ReflectionReader.cs: Correct a bug that prevents
Modified: trunk/cecil/lib/Mono.Cecil.Implem/LazyReflectionReader.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Implem/LazyReflectionReader.cs 2005-06-28
21:16:55 UTC (rev 46676)
+++ trunk/cecil/lib/Mono.Cecil.Implem/LazyReflectionReader.cs 2005-06-28
22:05:47 UTC (rev 46677)
@@ -310,7 +310,7 @@
return;
if (nextRow == null)
- next = propsTable.Rows.Count;
+ next = propsTable.Rows.Count + 1;
else
next = (int) nextRow.PropertyList;
Modified: trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs 2005-06-28
21:16:55 UTC (rev 46676)
+++ trunk/cecil/lib/Mono.Cecil.Implem/ReflectionReader.cs 2005-06-28
22:05:47 UTC (rev 46677)
@@ -116,7 +116,7 @@
public int GetRidForTypeDef (TypeDefinition typeDef)
{
int index = Array.IndexOf (m_typeDefs, typeDef);
- return index == - 1 ? 0 : index + 1;
+ return index == -1 ? 0 : index + 1;
}
public ITypeReference GetTypeDefOrRef (MetadataToken token)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches