G
Guest
I have some code that worked fine with .NET 1.1 but something has changed in
2.0 that I don't see documented. I have the line:
foreach (FieldInfo field in type.GetFields())
But there are never any fields returned like there was with 1.1. With the
help if ildasm I tried the following and it returns some properties.
foreach (PropertyInfo property in type.GetProperties())
One other problem is that when I call GetMembers and look at each of the
MemberType it seems that none are FieldType anymore. Any ideas? Am I just
doing something wrong?
Kevin
2.0 that I don't see documented. I have the line:
foreach (FieldInfo field in type.GetFields())
But there are never any fields returned like there was with 1.1. With the
help if ildasm I tried the following and it returns some properties.
foreach (PropertyInfo property in type.GetProperties())
One other problem is that when I call GetMembers and look at each of the
MemberType it seems that none are FieldType anymore. Any ideas? Am I just
doing something wrong?
Kevin