Refactoring removed using statement for System.Reflection, added qualified

references to avoid future issues.
pull/288/head
csharptest 14 years ago committed by rogerk
parent 02760b26da
commit c11bf71cc9
  1. 2
      src/ProtocolBuffers/EnumLite.cs

@ -101,7 +101,7 @@ namespace Google.ProtocolBuffers
#if SILVERLIGHT2
// Silverlight doesn't support Enum.GetValues
// TODO(jonskeet): Validate that this reflection is permitted, e.g. in Windows Phone 7
foreach (FieldInfo fi in typeof (TEnum).GetFields(BindingFlags.Static | BindingFlags.Public))
foreach (System.Reflection.FieldInfo fi in typeof(TEnum).GetFields(System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public))
{
TEnum evalue = (TEnum) fi.GetValue(null);
items.Add(Convert.ToInt32(evalue), new EnumValue(evalue));

Loading…
Cancel
Save