107 references to Value
System.Activities (13)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (4)
435
if (constantExpr.
Value
is Type)
437
EnsureTypeReferenced((Type)constantExpr.
Value
, true, typeReferences);
439
else if (constantExpr.
Value
!= null)
441
EnsureTypeReferenced(constantExpr.
Value
.GetType(), true, typeReferences);
System\Activities\Expressions\ExpressionServices.cs (5)
134
result = new Literal<TResult> { Value = (TResult)constantExpressionBody.
Value
};
373
variableObject = field.GetValue(memberExpression.
Value
) as Variable;
520
variableObject = field.GetValue(memberExpression.
Value
) as Variable;
1502
object value = ((ConstantExpression)expression).
Value
;
1560
object value = ((ConstantExpression)expression).
Value
;
System\Activities\ExpressionUtilities.cs (1)
1570
memberValue = constantExpression.
Value
;
System\Activities\XamlIntegration\ExpressionTreeRewriter.cs (3)
43
if (node.
Value
!= null && node.
Value
.GetType() == typeof(InlinedLocationReference))
46
ILocationReferenceWrapper inlinedReference = (ILocationReferenceWrapper)node.
Value
;
System.Core (18)
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
765
return c != null && c.
Value
== null;
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
485
object value = node.
Value
;
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
108
public Object Value { get { return _node.
Value
; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (4)
385
if (node.
Value
!= null) {
386
string sValue = node.
Value
.ToString();
387
if (node.
Value
is string) {
391
} else if (sValue == node.
Value
.GetType().ToString()) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (2)
154
if (ce.
Value
== null) {
157
return Expression.Constant(_typeOperand.GetNonNullableType() == ce.
Value
.GetType());
Microsoft\Scripting\Compiler\ConstantCheck.cs (1)
37
return ((ConstantExpression)e).
Value
== null;
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (1)
467
EmitConstant(node.
Value
, node.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (3)
358
decimal key = ConvertSwitchValue(test.
Value
);
363
keys.Add(new SwitchLabel(key, test.
Value
, labels[i]));
588
if (t.
Value
!= null) {
Microsoft\Scripting\Compiler\VariableBinder.cs (2)
71
if (ILGen.CanEmitConstant(node.
Value
, node.Type)) {
75
_constants.Peek().AddReference(node.
Value
, node.Type);
System\Linq\SequenceQuery.cs (2)
137
if (c != null && c.
Value
== this) {
296
EnumerableQuery sq = c.
Value
as EnumerableQuery;
System.Data.Entity (21)
System\Data\Objects\ELinq\Funcletizer.cs (5)
459
value = ((ConstantExpression)expression).
Value
;
476
value = ((ConstantExpression)ue.Operand).
Value
;
629
return ((ConstantExpression)_funcletizedExpression).
Value
;
634
return ce.
Value
;
703
if (!TryGetFieldOrPropertyValue(me, ((ConstantExpression)me.Expression).
Value
, out memberVal))
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (6)
106
if (constant.
Value
!= null &&
107
constant.
Value
.GetType() != typeof(object))
109
return Expression.Constant(constant.
Value
, constant.
Value
.GetType());
127
((ConstantExpression)expression).
Value
.Equals(0);
412
if (coalesce.Right.NodeType == ExpressionType.Constant && false.Equals(((ConstantExpression)coalesce.Right).
Value
))
System\Data\Objects\ELinq\MethodCallTranslator.cs (4)
483
MergeOption mergeAsOption = (MergeOption)((ConstantExpression)call.Arguments[0]).
Value
;
508
Span span = (Span)((ConstantExpression)call.Arguments[0]).
Value
;
1352
return object.Equals(((ConstantExpression)newArray.Expressions[0]).
Value
, 0);
1507
string intervalValue = intervalLinqExpression.
Value
.ToString();
System\Data\Objects\ELinq\Translator.cs (6)
72
ObjectQuery queryOfT = linq.
Value
as ObjectQuery;
79
var values = linq.
Value
as System.Collections.IEnumerable;
99
bool isNullValue = null == linq.
Value
;
140
var value = linq.
Value
;
146
value = System.Convert.ChangeType(linq.
Value
, nonNullableLinqType.GetEnumUnderlyingType(), CultureInfo.InvariantCulture);
1048
return null == constant.
Value
;
System.Data.Linq (15)
DataServices.cs (3)
505
ITable t = cex.
Value
as ITable;
574
keys.Add(mm, cex.
Value
);
581
keys.Add(mm, ((Delegate)ce.
Value
).DynamicInvoke(new object[] {}));
SqlClient\Query\Funcletizer.cs (1)
54
if (c.
Value
== null) {
SqlClient\Query\QueryConverter.cs (11)
294
((ConstantExpression)fex).
Value
!= query) {
799
if (cons.
Value
== null) {
803
type = cons.
Value
.GetType();
805
return sql.ValueFromObject(cons.
Value
, type, true, this.dominatingExpression);
1962
object[] obs = c.
Value
as object[];
2406
if (conItem.
Value
== null) {
2411
itemMetaType = metaTable.RowType.GetInheritanceType(conItem.
Value
.GetType());
2412
SqlExpression sqlExprItem = sql.ValueFromObject(conItem.
Value
, true, source);
2589
if (conItem.
Value
== null) {
2593
Type entityType = conItem.
Value
.GetType();
2596
foreach (ModifiedMemberInfo mmi in table.GetModifiedMembers(conItem.
Value
)) {
System.Data.Services (14)
System\Data\Services\Internal\PropertyAccessVisitor.cs (4)
48
propertyExpression != null && propertyExpression.
Value
is ResourceProperty,
50
resourceProperty = propertyExpression.
Value
as ResourceProperty;
58
propertyExpression != null && propertyExpression.
Value
is string,
60
propertyName = propertyExpression.
Value
as string;
System\Data\Services\Parsing\FunctionDescription.cs (6)
327
return Expression.TypeIs(target, (Type)ce.
Value
);
337
return Expression.TypeIs(arguments[0], (Type)ce.
Value
);
366
bool callOpenTypeMethod = ((bool)((ConstantExpression)arguments[2]).
Value
) == true;
378
return Expression.Convert(target, (Type)ce.
Value
);
396
Type targetType = (Type)ce.
Value
;
432
bool callOpenTypeMethod = ((bool)((ConstantExpression)arguments[2]).
Value
) == true;
System\Data\Services\Parsing\RequestQueryParser.cs (3)
350
return ((ConstantExpression)e).
Value
;
1937
Type castTargetType = (Type)((ConstantExpression)typeExpression).
Value
;
1984
WebUtil.TryResolveResourceType(this.provider, (string)((ConstantExpression)candidateTypeArgument).
Value
),
System\Data\Services\WebUtil.cs (1)
888
(expression.NodeType == ExpressionType.Constant && ((ConstantExpression)expression).
Value
== null);
System.Data.Services.Client (26)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (6)
200
if (constant.
Value
!= null &&
201
constant.
Value
.GetType() != typeof(object))
203
return Expression.Constant(constant.
Value
, constant.
Value
.GetType());
222
((ConstantExpression)expression).
Value
.Equals(0);
492
if (coalesce.Right.NodeType == ExpressionType.Constant && false.Equals(((ConstantExpression)coalesce.Right).
Value
))
System\Data\Services\Client\ALinq\ExpressionWriter.cs (3)
291
if (c.
Value
== null)
296
else if (!ClientConvert.TryKeyPrimitiveToString(c.
Value
, out result))
298
throw new InvalidOperationException(Strings.ALinq_CouldNotConvert(c.
Value
));
System\Data\Services\Client\ALinq\ResourceBinder.cs (8)
796
if (rse.Take == null || (int)rse.Take.TakeAmount.
Value
> maxCardinality)
860
string path = (string)ce.
Value
;
883
if (((string)name.
Value
).Trim() == UriHelper.DOLLARSIGN + UriHelper.OPTIONEXPAND)
888
re.ExpandPaths = re.ExpandPaths.Union(new string[] { (string) value.
Value
}, StringComparer.Ordinal).ToList();
1547
return keyValue.
Value
!= null;
2025
if (constant != null && constant.
Value
== null)
2314
string name = ((string)(e as ConstantExpression).
Value
).Trim();
2318
if (target.CustomQueryOptions.Any(c => (string)c.Key.
Value
== name))
System\Data\Services\Client\ALinq\SkipQueryOptionExpression.cs (2)
64
int thisValue = (int)this.skipAmount.
Value
;
65
int previousValue = (int)((SkipQueryOptionExpression)previous).skipAmount.
Value
;
System\Data\Services\Client\ALinq\TakeQueryOptionExpression.cs (2)
64
int thisValue = (int)this.takeAmount.
Value
;
65
int previousValue = (int)((TakeQueryOptionExpression)previous).takeAmount.
Value
;
System\Data\Services\Client\ALinq\UriWriter.cs (5)
109
throw new NotSupportedException(Strings.ALinq_ConstantNotSupported(c.
Value
));
239
this.uriBuilder.Append(UriHelper.FORWARDSLASH).Append((string)((ConstantExpression)rse.MemberExpression).
Value
);
523
this.uriBuilder.Append(keys[ii].
Value
);
525
this.uriBuilder.Append(values[ii].
Value
);
527
if (keys[ii].
Value
.ToString().Equals(UriHelper.DOLLARSIGN + UriHelper.OPTIONCOUNT, StringComparison.OrdinalIgnoreCase))