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