131 references to Member
System.Activities (47)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
485
EnsureTypeReferenced(memberExpression.
Member
.DeclaringType, true, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
891
bool subTreeIsLocationExpression = isLocationExpression && memberExpression.
Member
.DeclaringType.IsValueType;
898
return Expression.MakeMemberAccess(expr1, memberExpression.
Member
);
System\Activities\Expressions\ExpressionServices.cs (30)
76
Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.
Member
.DeclaringType : memberExpressionBody.Expression.Type;
179
Type memberType = memberExpressionBody.Expression == null ? memberExpressionBody.
Member
.DeclaringType : memberExpressionBody.Expression.Type;
370
if (member.
Member
is FieldInfo)
372
FieldInfo field = member.
Member
as FieldInfo;
517
if (member.
Member
is FieldInfo)
519
FieldInfo field = member.
Member
as FieldInfo;
731
if (memberExpression != null && memberExpression.
Member
is PropertyInfo)
733
PropertyInfo property = memberExpression.
Member
as PropertyInfo;
755
if (member.
Member
is PropertyInfo)
757
PropertyInfo property = member.
Member
as PropertyInfo;
1045
if (memberExpressionBody.
Member
is PropertyInfo)
1049
result = new PropertyValue<TOperand, TResult> { PropertyName = memberExpressionBody.
Member
.Name };
1053
result = new PropertyValue<TOperand, TResult> { Operand = operand, PropertyName = memberExpressionBody.
Member
.Name };
1057
else if (memberExpressionBody.
Member
is FieldInfo)
1061
result = new FieldValue<TOperand, TResult> { FieldName = memberExpressionBody.
Member
.Name };
1065
result = new FieldValue<TOperand, TResult> { Operand = operand, FieldName = memberExpressionBody.
Member
.Name };
1071
throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.
Member
.GetType().Name)));
1075
return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.
Member
.GetType().Name);
1121
if (memberExpressionBody.
Member
is PropertyInfo)
1127
result = new PropertyReference<TOperand, TResult> { PropertyName = memberExpressionBody.
Member
.Name };
1131
result = new PropertyReference<TOperand, TResult> { Operand = operand, PropertyName = memberExpressionBody.
Member
.Name };
1138
result = new ValueTypePropertyReference<TOperand, TResult> { PropertyName = memberExpressionBody.
Member
.Name };
1142
result = new ValueTypePropertyReference<TOperand, TResult> { OperandLocation = operandReference, PropertyName = memberExpressionBody.
Member
.Name };
1148
if (memberExpressionBody.
Member
is FieldInfo)
1154
result = new FieldReference<TOperand, TResult> { FieldName = memberExpressionBody.
Member
.Name };
1158
result = new FieldReference<TOperand, TResult> { Operand = operand, FieldName = memberExpressionBody.
Member
.Name };
1165
result = new ValueTypeFieldReference<TOperand, TResult> { FieldName = memberExpressionBody.
Member
.Name };
1169
result = new ValueTypeFieldReference<TOperand, TResult> { OperandLocation = operandReference, FieldName = memberExpressionBody.
Member
.Name };
1177
throw FxTrace.Exception.AsError(new NotSupportedException(SR.UnsupportedMemberExpressionWithType(memberExpressionBody.
Member
.GetType().Name)));
1181
return SR.UnsupportedMemberExpressionWithType(memberExpressionBody.
Member
.GetType().Name);
System\Activities\ExpressionUtilities.cs (13)
93
MemberTypes memberType = memberExpression.
Member
.MemberType;
96
FieldInfo fieldInfo = (FieldInfo)memberExpression.
Member
;
106
PropertyInfo propertyInfo = (PropertyInfo)memberExpression.
Member
;
168
MemberTypes memberType = ((MemberExpression)body).
Member
.MemberType;
345
Fx.Assert(memberExpression.
Member
.MemberType == MemberTypes.Field, "member field expected");
346
this.fieldInfo = (FieldInfo)memberExpression.
Member
;
740
Fx.Assert(memberExpression.
Member
.MemberType == MemberTypes.Property, "property access expression expected");
741
this.propertyInfo = (PropertyInfo)memberExpression.
Member
;
1010
bool subTreeIsLocationExpression = isLocationExpression && memberExpression.
Member
.DeclaringType.IsValueType;
1018
memberExpression.
Member
);
1414
if (memberExpression.
Member
.MemberType == MemberTypes.Property)
1416
RuntimeArgument runtimeArgument = ActivityUtilities.FindArgument(memberExpression.
Member
.Name, publicAccessor.ActivityMetadata.CurrentActivity);
1583
memberValue = GetMemberValue(memberExpression.
Member
, memberValue);
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (1)
64
if (node.
Member
.Name == locationReference.Name)
System.Core (21)
Microsoft\Scripting\Ast\BinaryExpression.cs (2)
228
Expression e2 = Expression.MakeBinary(op, Expression.MakeMemberAccess(temp1, member.
Member
), _right, false, Method);
237
Expression e3 = Expression.Assign(Expression.MakeMemberAccess(temp1, member.
Member
), temp2);
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
558
OutMember(node, node.Expression, node.
Member
);
Microsoft\Scripting\Ast\Expression.cs (4)
353
MemberInfo memberInfo = member.
Member
;
397
switch (member.
Member
.MemberType) {
399
PropertyInfo prop = (PropertyInfo)member.
Member
;
403
FieldInfo field = (FieldInfo)member.
Member
;
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
280
public MemberInfo Member { get { return _node.
Member
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
435
OutMember(node.Expression, node.
Member
);
Microsoft\Scripting\Ast\MemberExpression.cs (1)
100
return Expression.MakeMemberAccess(expression,
Member
);
Microsoft\Scripting\Ast\UnaryExpression.cs (1)
199
member = MakeMemberAccess(temp1, member.
Member
);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (4)
122
EmitMemberAddress(node.
Member
, objectType);
244
if (node.
Member
.MemberType != MemberTypes.Property || !((PropertyInfo)node.
Member
).CanWrite) {
258
PropertyInfo pi = (PropertyInfo)node.
Member
;
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
650
MemberInfo member = lvalue.
Member
;
695
EmitMemberGet(node.
Member
, instanceType);
Microsoft\Scripting\Compiler\StackSpiller.cs (3)
356
MemberExpression.Make(cr[0], lvalue.
Member
),
372
node.
Member
.MemberType == MemberTypes.Property) {
377
expr = MemberExpression.Make(expression.Node, node.
Member
);
System\Linq\Expressions\ExpressionVisitor.cs (1)
158
return Expression.MakeMemberAccess(exp, m.
Member
);
System.Data.Entity (18)
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (1)
185
return Expression.MakeMemberAccess(exp, m.
Member
);
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
1538
MemberInfo memberInfo = TypeSystem.PropertyOrField(((MemberExpression)Expression).
Member
, out memberName, out memberType);
1566
MemberInfo memberInfo = TypeSystem.PropertyOrField(((MemberExpression)Expression).
Member
, out memberName, out memberType);
System\Data\Objects\ELinq\Funcletizer.cs (6)
259
if (member.
Member
.MemberType == MemberTypes.Property)
261
return ExpressionConverter.CanFuncletizePropertyInfo((PropertyInfo)member.
Member
);
731
if (me.
Member
.MemberType == MemberTypes.Field)
733
memberValue = ((FieldInfo)me.
Member
).GetValue(instance);
736
else if (me.
Member
.MemberType == MemberTypes.Property)
738
memberValue = ((PropertyInfo)me.
Member
).GetValue(instance, null);
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (2)
45
PropertyInfo property = (PropertyInfo)memberEx.
Member
;
150
PropertyInfo property = (PropertyInfo)call.
Member
;
System\Data\Objects\ELinq\Translator.cs (5)
166
MemberInfo memberInfo = TypeSystem.PropertyOrField(linq.
Member
, out memberName, out memberType);
191
throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnrecognizedMember(linq.
Member
.Name));
560
return parent.TranslateIntoCanonicalFunction(call.
Member
.Name, call, call.Expression);
597
PropertyInfo property = (PropertyInfo)call.
Member
;
648
return MemberAccessTranslator.TranslateCount(parent, call.
Member
.DeclaringType.GetGenericArguments()[0], call.Expression);
System\Data\Objects\ObjectContext.cs (2)
854
!bodyAsMember.
Member
.DeclaringType.IsAssignableFrom(typeof(TEntity)) ||
859
return bodyAsMember.
Member
.Name;
System.Data.Linq (13)
DataServices.cs (3)
562
if (!type.Type.IsAssignableFrom(memex.
Member
.ReflectedType) && !memex.
Member
.ReflectedType.IsAssignableFrom(type.Type)) {
565
MetaDataMember mm = type.GetDataMember(memex.
Member
);
DataShape.cs (2)
175
return mex.
Member
;
192
this.MemberInfo = m.
Member
;
SqlClient\Query\Funcletizer.cs (1)
285
return Expression.MakeMemberAccess(exp, m.
Member
);
SqlClient\Query\QueryConverter.cs (4)
1859
Type memberType = TypeSystem.GetMemberType(ma.
Member
);
1867
if (ma.
Member
.Name == "Count" && TypeSystem.IsSequenceType(ma.Expression.Type)) {
1871
return sql.Member(VisitExpression(ma.Expression), ma.
Member
);
2510
if (mex != null && mex.
Member
== keyMember.Member) {
SqlClient\Query\Translator.cs (3)
225
if (MetaPosition.AreSameMember(m.
Member
, this.association.ThisMember.Member)) {
231
if (exp.Type != m.Expression.Type && m.
Member
.Name == "Count" && TypeSystem.IsSequenceType(exp.Type)) {
234
return Expression.MakeMemberAccess(exp, m.
Member
);
System.Data.Services (6)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
316
return Expression.MakeMemberAccess(exp, m.
Member
);
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (2)
155
if (m.
Member
.MemberType != MemberTypes.Property || m.Expression.NodeType != ExpressionType.Parameter)
165
this.property = this.rt.TryResolvePropertyName(m.
Member
.Name);
System\Data\Services\Internal\PropertyAccessVisitor.cs (3)
93
if (m.
Member
.MemberType == MemberTypes.Property)
97
if (this.ProcessPropertyAccess(m.
Member
.Name, ref operand, ref result))
101
return Expression.MakeMemberAccess(operand, m.
Member
);
System.Data.Services.Client (25)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
316
return Expression.MakeMemberAccess(exp, m.
Member
);
System\Data\Services\Client\ALinq\ExpressionWriter.cs (6)
259
if (m.
Member
is FieldInfo)
261
throw new NotSupportedException(Strings.ALinq_CantReferToPublicField(m.
Member
.Name));
267
if (m.
Member
.Name == "Value" && m.
Member
.DeclaringType.IsGenericType
268
&& m.
Member
.DeclaringType.GetGenericTypeDefinition() == typeof(Nullable<>))
278
this.builder.Append(m.
Member
.Name);
System\Data\Services\Client\ALinq\InputBinder.cs (2)
116
memberRef.
Member
.MemberType == MemberTypes.Property &&
119
nestedAccesses.Push((PropertyInfo)memberRef.
Member
);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
325
if (lastExpression != null && (lastExpression.
Member
.Name != ma.Member.Name))
327
throw new NotSupportedException(Strings.ALinq_PropertyNamesMustMatchInProjections(lastExpression.
Member
.Name, ma.Member.Name));
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
1480
if (me.
Member
.MemberType == MemberTypes.Property)
1482
PropertyInfo pi = (PropertyInfo)me.
Member
;
2006
if (((MemberExpression)assigned).
Member
!= ((MemberExpression)member).
Member
)
System\Data\Services\Client\ALinq\UriWriter.cs (1)
149
throw new NotSupportedException(Strings.ALinq_MemberAccessNotSupported(m.
Member
.Name));
System\Data\Services\Client\MemberAssignmentAnalysis.cs (2)
330
if (((MemberExpression)p).
Member
.Name != ((MemberExpression)c).
Member
.Name)
System\Data\Services\Client\ProjectionPath.cs (1)
57
this.Add(new ProjectionPathSegment(this, ((MemberExpression)member).
Member
.Name, member.Type));
System\Data\Services\Client\ProjectionPathBuilder.cs (1)
175
names.Add(member.
Member
.Name);
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
213
result = Expression.MakeMemberAccess(baseTargetExpression, m.
Member
);
555
string[] expressionNames = expressions.Skip(1).Select(e => ((MemberExpression)e).
Member
.Name).ToArray();
727
Expression.Constant(((MemberExpression)path[pathIndex]).
Member
.Name, typeof(string)));
802
ProjectionPathSegment nestedSegment = new ProjectionPathSegment(nestedPath, m.
Member
.Name, m.Type);
815
memberSegment = new ProjectionPathSegment(baseAnnotation.Segment.StartPath, m.
Member
.Name, m.Type);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
1099
propName = me.
Member
.Name;