1 write to Member
System.Linq.Expressions (1)
System\Linq\Expressions\MemberBinding.cs (1)
41Member = member;
58 references to Member
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
ExpressionTrees\Sources\ExprLambdaUtils.vb (3)
112_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString()) 125_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString()) 138_s.AppendLine(indent + _indentStep + "member: " + node.Member.ToString())
System.Linq.Expressions (55)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (17)
960if (binding.Member is FieldInfo fi) 966Debug.Assert(binding.Member is PropertyInfo); 967EmitCall(objectType, (binding.Member as PropertyInfo)!.GetSetMethod(nonPublic: true)!); 973Type type = GetMemberType(binding.Member); 974if (binding.Member is PropertyInfo && type.IsValueType) 976throw Error.CannotAutoInitializeValueTypeMemberThroughProperty(binding.Member); 980EmitMemberAddress(binding.Member, binding.Member.DeclaringType); 984EmitMemberGet(binding.Member, binding.Member.DeclaringType); 991Type type = GetMemberType(binding.Member); 992if (binding.Member is PropertyInfo && type.IsValueType) 994throw Error.CannotAutoInitializeValueTypeElementThroughProperty(binding.Member); 998EmitMemberAddress(binding.Member, binding.Member.DeclaringType); 1002EmitMemberGet(binding.Member, binding.Member.DeclaringType);
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (9)
49if (_binding.Member is PropertyInfo property && property.PropertyType.IsValueType) 90return new MemberMemberBinding(_binding.Member, new TrueReadOnlyCollection<MemberBinding>(newBindings)); 99Expression member = MemberExpression.Make(target, _binding.Member); 117new AssignBinaryExpression(MemberExpression.Make(target, _binding.Member), memberTemp) 175return new MemberListBinding(_binding.Member, new TrueReadOnlyCollection<ElementInit>(newInits)); 184Expression member = MemberExpression.Make(target, _binding.Member); 203new AssignBinaryExpression(MemberExpression.Make(target, _binding.Member), memberTemp) 231RewriteAction.Copy => new MemberAssignment(_binding.Member, _rhs), 237Expression member = MemberExpression.Make(target, _binding.Member);
System\Linq\Expressions\DebugViewWriter.cs (3)
832Out(assignment.Member.Name); 840Out(binding.Member.Name); 848Out(binding.Member.Name);
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
442Out(assignment.Member.Name); 450Out(binding.Member.Name); 466Out(binding.Member.Name);
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
2730((MemberAssignment)binding).Member, 2738CompileMember(null, memberList.Member, forBinding: true); 2745Type type = GetMemberType(memberMember.Member); 2746if (memberMember.Member is PropertyInfo && type.IsValueType) 2751CompileMember(null, memberMember.Member, forBinding: true);
System\Linq\Expressions\MemberAssignment.cs (1)
43return Expression.Bind(Member, expression);
System\Linq\Expressions\MemberInitExpression.cs (3)
104MemberExpression member = Expression.MakeMemberAccess(objVar, binding.Member); 144/// <exception cref="ArgumentException">The <see cref="MemberBinding.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception> 156/// <exception cref="ArgumentException">The <see cref="MemberBinding.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception>
System\Linq\Expressions\MemberListBinding.cs (7)
49return Expression.ListBind(Member, initializers!); 60/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/> and the <see cref="MemberBinding.Member"/> and <see cref="MemberListBinding.Initializers"/> properties set to the specified values.</returns> 61/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="MemberBinding.Member"/> property equal to.</param> 73/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/> and the <see cref="MemberBinding.Member"/> and <see cref="MemberListBinding.Initializers"/> properties set to the specified values.</returns> 74/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="MemberBinding.Member"/> property equal to.</param> 92/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="MemberBinding.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns> 106/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="MemberBinding.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns>
System\Linq\Expressions\MemberMemberBinding.cs (7)
52return Expression.MemberBind(Member, bindings!); 65/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="MemberBinding.Member"/> property equal to.</param> 67/// <returns>A <see cref="MemberMemberBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBinding"/> and the <see cref="MemberBinding.Member"/> and <see cref="MemberMemberBinding.Bindings"/> properties set to the specified values.</returns> 76/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="MemberBinding.Member"/> property equal to.</param> 78/// <returns>A <see cref="MemberMemberBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBinding"/> and the <see cref="MemberBinding.Member"/> and <see cref="MemberMemberBinding.Bindings"/> properties set to the specified values.</returns> 160if (!b.Member.DeclaringType!.IsAssignableFrom(type)) 162throw Error.NotAMemberOfType(b.Member.Name, type, nameof(bindings), i);