public
enum
BindingFlags
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
{
Default = 0,
IgnoreCase = 1,
DeclaredOnly = 2,
Instance = 4,
Static = 8,
Public = 16,
NonPublic = 32,
FlattenHierarchy = 64,
InvokeMethod = 256,
CreateInstance = 512,
GetField = 1024,
SetField = 2048,
GetProperty = 4096,
SetProperty = 8192,
PutDispProperty = 16384,
PutRefDispProperty = 32768,
ExactBinding = 65536,
SuppressChangeType = 131072,
OptionalParamBinding = 262144,
IgnoreReturn = 16777216,
}
}
|
ArrayList list
=
new
ArrayList();
list.Add(
new
DictionaryEntry(
"
0
"
,
"
Default
"
));
list.Add(
new
DictionaryEntry(
"
2
"
,
"
IgnoreCase
"
));
list.Add(
new
DictionaryEntry(
"
3
"
,
"
DeclaredOnly
"
));
list.Add(
new
DictionaryEntry(
"
4
"
,
"
Instance
"
));
list.Add(
new
DictionaryEntry(
"
8
"
,
"
Static
"
));
list.Add(
new
DictionaryEntry(
"
16
"
,
"
Public
"
));
list.Add(
new
DictionaryEntry(
"
32
"
,
"
NonPublic
"
));
list.Add(
new
DictionaryEntry(
"
64
"
,
"
FlattenHierarchy
"
));
list.Add(
new
DictionaryEntry(
"
256
"
,
"
InvokeMethod
"
));
list.Add(
new
DictionaryEntry(
"
512
"
,
"
CreateInstance
"
));
list.Add(
new
DictionaryEntry(
"
1024
"
,
"
GetField
"
));
list.Add(
new
DictionaryEntry(
"
2048
"
,
"
SetField
"
));
list.Add(
new
DictionaryEntry(
"
4096
"
,
"
GetProperty
"
));
list.Add(
new
DictionaryEntry(
"
8192
"
,
"
SetProperty
"
));
list.Add(
new
DictionaryEntry(
"
16384
"
,
"
PutDispProperty
"
));
list.Add(
new
DictionaryEntry(
"
32768
"
,
"
PutRefDispProperty
"
));
list.Add(
new
DictionaryEntry(
"
65536
"
,
"
ExactBinding
"
));
list.Add(
new
DictionaryEntry(
"
131072
"
,
"
SuppressChangeType
"
));
list.Add(
new
DictionaryEntry(
"
262144O
"
,
"
ptionalParamBinding
"
));
list.Add(
new
DictionaryEntry(
"
16777216
"
,
"
IgnoreReturn
"
));
![None.gif](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
comboBox1.DataSource
=
list;
comboBox1.DisplayMember
=
"
Value
"
;
comboBox1.ValueMember
=
"
Key
"
;
|