зеркало из https://github.com/mono/ikvm-fork.git
Removed incorrect optimization. If a FieldLayout record exists, we should always return the pseudo custom attribute FieldOffset, regardless of the declaring type's layout.
This commit is contained in:
Родитель
2f91e4253b
Коммит
8ae11694b7
|
@ -130,8 +130,7 @@ namespace IKVM.Reflection.Reader
|
|||
list.Add(spec.ToCustomAttribute(module));
|
||||
}
|
||||
}
|
||||
if (declaringType.IsExplicitLayout
|
||||
&& (attributeType == null || attributeType.IsAssignableFrom(module.universe.System_Runtime_InteropServices_FieldOffsetAttribute)))
|
||||
if (attributeType == null || attributeType.IsAssignableFrom(module.universe.System_Runtime_InteropServices_FieldOffsetAttribute))
|
||||
{
|
||||
foreach (int i in module.FieldLayout.Filter(index + 1))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче