1 write to Member
System.Linq.Expressions (1)
System\Linq\Expressions\MemberBinding.cs (1)
41
Member
= 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)
960
if (binding.
Member
is FieldInfo fi)
966
Debug.Assert(binding.
Member
is PropertyInfo);
967
EmitCall(objectType, (binding.
Member
as PropertyInfo)!.GetSetMethod(nonPublic: true)!);
973
Type type = GetMemberType(binding.
Member
);
974
if (binding.
Member
is PropertyInfo && type.IsValueType)
976
throw Error.CannotAutoInitializeValueTypeMemberThroughProperty(binding.
Member
);
980
EmitMemberAddress(binding.
Member
, binding.
Member
.DeclaringType);
984
EmitMemberGet(binding.
Member
, binding.
Member
.DeclaringType);
991
Type type = GetMemberType(binding.
Member
);
992
if (binding.
Member
is PropertyInfo && type.IsValueType)
994
throw Error.CannotAutoInitializeValueTypeElementThroughProperty(binding.
Member
);
998
EmitMemberAddress(binding.
Member
, binding.
Member
.DeclaringType);
1002
EmitMemberGet(binding.
Member
, binding.
Member
.DeclaringType);
System\Linq\Expressions\Compiler\StackSpiller.Bindings.cs (9)
49
if (_binding.
Member
is PropertyInfo property && property.PropertyType.IsValueType)
90
return new MemberMemberBinding(_binding.
Member
, new TrueReadOnlyCollection<MemberBinding>(newBindings));
99
Expression member = MemberExpression.Make(target, _binding.
Member
);
117
new AssignBinaryExpression(MemberExpression.Make(target, _binding.
Member
), memberTemp)
175
return new MemberListBinding(_binding.
Member
, new TrueReadOnlyCollection<ElementInit>(newInits));
184
Expression member = MemberExpression.Make(target, _binding.
Member
);
203
new AssignBinaryExpression(MemberExpression.Make(target, _binding.
Member
), memberTemp)
231
RewriteAction.Copy => new MemberAssignment(_binding.
Member
, _rhs),
237
Expression member = MemberExpression.Make(target, _binding.
Member
);
System\Linq\Expressions\DebugViewWriter.cs (3)
832
Out(assignment.
Member
.Name);
840
Out(binding.
Member
.Name);
848
Out(binding.
Member
.Name);
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
442
Out(assignment.
Member
.Name);
450
Out(binding.
Member
.Name);
466
Out(binding.
Member
.Name);
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
2730
((MemberAssignment)binding).
Member
,
2738
CompileMember(null, memberList.
Member
, forBinding: true);
2745
Type type = GetMemberType(memberMember.
Member
);
2746
if (memberMember.
Member
is PropertyInfo && type.IsValueType)
2751
CompileMember(null, memberMember.
Member
, forBinding: true);
System\Linq\Expressions\MemberAssignment.cs (1)
43
return Expression.Bind(
Member
, expression);
System\Linq\Expressions\MemberInitExpression.cs (3)
104
MemberExpression 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)
49
return 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)
52
return 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>
160
if (!b.
Member
.DeclaringType!.IsAssignableFrom(type))
162
throw Error.NotAMemberOfType(b.
Member
.Name, type, nameof(bindings), i);