Whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.
using System;
using System.Reflection;
using System.ComponentModel.Design;
class MainClass
{
publicstaticvoid Main()
{
Type myType = typeof(ViewTechnology);
FieldInfo[] myField = myType.GetFields();
for(int i = 0; i < myField.Length; i++)
{
if(myField[i].IsSpecialName)
{
Console.WriteLine("The field {0} has a SpecialName attribute.",myField[i].Name);
}
}
}
}