1 write to MemberInfo
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
28
MemberInfo
= member;
44 references to MemberInfo
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1834
if (desc.
MemberInfo
is FieldInfo || desc.
MemberInfo
is PropertyInfo)
1836
CodeFieldReferenceExpression cfre = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(desc.
MemberInfo
.DeclaringType.FullName), desc.
MemberInfo
.Name);
1845
if (desc.
MemberInfo
is MethodInfo mi)
1854
CodeMethodInvokeExpression cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(desc.
MemberInfo
.DeclaringType.FullName), desc.
MemberInfo
.Name);
1862
else if (desc.
MemberInfo
is ConstructorInfo ci) // instance ctor invoke
1871
CodeObjectCreateExpression coce = new CodeObjectCreateExpression(desc.
MemberInfo
.DeclaringType.FullName);
PresentationFramework (1)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
378
ConstructorInfo ctorInfo = instanceDescriptor.
MemberInfo
as ConstructorInfo;
System.ComponentModel.TypeConverter (8)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (8)
128
if (
MemberInfo
is ConstructorInfo)
130
return ((ConstructorInfo)
MemberInfo
).Invoke(translatedArguments);
132
else if (
MemberInfo
is MethodInfo)
134
return ((MethodInfo)
MemberInfo
).Invoke(null, translatedArguments);
136
else if (
MemberInfo
is PropertyInfo)
138
return ((PropertyInfo)
MemberInfo
).GetValue(null, translatedArguments);
140
else if (
MemberInfo
is FieldInfo)
142
return ((FieldInfo)
MemberInfo
).GetValue(null);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (9)
1891
if (converter.ConvertTo(value, typeof(InstanceDescriptor)) is InstanceDescriptor descriptor && descriptor.
MemberInfo
is not null)
1903
if (converter.ConvertTo(value, typeof(InstanceDescriptor)) is InstanceDescriptor descriptor && descriptor.
MemberInfo
is not null)
1947
if (descriptor.
MemberInfo
is MethodBase mi)
1997
Type expressionType = descriptor.
MemberInfo
!.DeclaringType!;
2000
if (descriptor.
MemberInfo
is ConstructorInfo)
2004
else if (descriptor.
MemberInfo
is MethodInfo methodInfo)
2011
else if (descriptor.
MemberInfo
is PropertyInfo propertyInfo)
2019
else if (descriptor.
MemberInfo
is FieldInfo fieldInfo)
2028
Debug.Fail($"Unrecognized reflection type in instance descriptor: {descriptor.
MemberInfo
.GetType().Name}");
System.Windows.Forms.Tests (12)
System\Windows\Forms\ColumnHeaderConverterTests.cs (1)
98
Assert.Equal(value.GetType().GetConstructor(parameterTypes), descriptor.
MemberInfo
);
System\Windows\Forms\CursorConverterTests.cs (1)
103
Assert.Equal(typeof(Cursors).GetProperty(nameof(Cursors.AppStarting), BindingFlags.Public | BindingFlags.Static), descriptor.
MemberInfo
);
System\Windows\Forms\LinkAreaConverterTests.cs (1)
86
Assert.Equal(typeof(LinkArea).GetConstructor([typeof(int), typeof(int)]), descriptor.
MemberInfo
);
System\Windows\Forms\LinkConverterTests.cs (2)
84
Assert.Equal(typeof(LinkLabel.Link).GetConstructor([typeof(int), typeof(int)]), descriptor.
MemberInfo
);
94
Assert.Equal(typeof(LinkLabel.Link).GetConstructor([typeof(int), typeof(int), typeof(object)]), descriptor.
MemberInfo
);
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
204
Assert.Equal(typeof(ListViewGroup).GetConstructor(parameterTypes), descriptor.
MemberInfo
);
System\Windows\Forms\ListViewItemConverterTests.cs (1)
259
Assert.Equal(typeof(ListViewItem).GetConstructor(parameterTypes), descriptor.
MemberInfo
);
System\Windows\Forms\ListViewSubItemConverterTests.cs (1)
72
Assert.Equal(typeof(ListViewItem.ListViewSubItem).GetConstructor(parameterTypes), descriptor.
MemberInfo
);
System\Windows\Forms\PaddingConverterTests.cs (2)
89
Assert.Equal(typeof(Padding).GetConstructor([typeof(int), typeof(int), typeof(int), typeof(int)]), descriptor.
MemberInfo
);
98
Assert.Equal(typeof(Padding).GetConstructor([typeof(int)]), descriptor.
MemberInfo
);
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (1)
176
Assert.Equal(typeof(TableLayoutPanelCellPosition).GetConstructor([typeof(int), typeof(int)]), descriptor.
MemberInfo
);
System\Windows\Forms\TableLayoutStyleTests.cs (1)
140
Assert.Equal(expectedConstructor, descriptor.
MemberInfo
);
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
1418
member = descriptor.
MemberInfo
;
System.Xaml.Tests (4)
System\Windows\Markup\StaticExtensionTests.cs (1)
217
Assert.Equal(new Type[] { typeof(string) }, Assert.IsAssignableFrom<ConstructorInfo>(descriptor.
MemberInfo
).GetParameters().Select(p => p.ParameterType));
System\Windows\Markup\TypeExtensionTests.cs (1)
178
Assert.Equal(new Type[] { typeof(Type) }, Assert.IsAssignableFrom<ConstructorInfo>(descriptor.
MemberInfo
).GetParameters().Select(p => p.ParameterType));
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (1)
90
ParameterInfo[] parameters = Assert.IsAssignableFrom<ConstructorInfo>(descriptor.
MemberInfo
).GetParameters();
System\Xaml\Replacements\TypeUriConverterTests.cs (1)
151
ParameterInfo[] parameters = Assert.IsAssignableFrom<ConstructorInfo>(descriptor.
MemberInfo
).GetParameters();