2 writes to Value
System (1)
compmod\system\codedom\CodePrimitiveExpression.cs (1)
45
Value
= value;
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1697
valueExpression.
Value
= ReplaceNamespace(proxyNamespaceHead, configNamespaceHead, (string)valueExpression.Value);
106 references to Value
System (66)
compmod\microsoft\csharp\csharpcodeprovider.cs (32)
1190
if (e.
Value
is char) {
1191
GeneratePrimitiveChar((char)e.
Value
);
1193
else if (e.
Value
is SByte) {
1195
Output.Write(((SByte)e.
Value
).ToString(CultureInfo.InvariantCulture));
1197
else if (e.
Value
is UInt16) {
1200
Output.Write(((UInt16)e.
Value
).ToString(CultureInfo.InvariantCulture));
1202
else if (e.
Value
is UInt32) {
1203
Output.Write(((UInt32)e.
Value
).ToString(CultureInfo.InvariantCulture));
1206
else if (e.
Value
is UInt64) {
1207
Output.Write(((UInt64)e.
Value
).ToString(CultureInfo.InvariantCulture));
1222
if (e.
Value
== null) {
1225
else if (e.
Value
is string) {
1226
Output.Write(QuoteSnippetString((string)e.
Value
));
1228
else if (e.
Value
is char) {
1229
Output.Write("'" + e.
Value
.ToString() + "'");
1231
else if (e.
Value
is byte) {
1232
Output.Write(((byte)e.
Value
).ToString(CultureInfo.InvariantCulture));
1234
else if (e.
Value
is Int16) {
1235
Output.Write(((Int16)e.
Value
).ToString(CultureInfo.InvariantCulture));
1237
else if (e.
Value
is Int32) {
1238
Output.Write(((Int32)e.
Value
).ToString(CultureInfo.InvariantCulture));
1240
else if (e.
Value
is Int64) {
1241
Output.Write(((Int64)e.
Value
).ToString(CultureInfo.InvariantCulture));
1243
else if (e.
Value
is Single) {
1244
GenerateSingleFloatValue((Single)e.
Value
);
1246
else if (e.
Value
is Double) {
1247
GenerateDoubleValue((Double)e.
Value
);
1249
else if (e.
Value
is Decimal) {
1250
GenerateDecimalValue((Decimal)e.
Value
);
1252
else if (e.
Value
is bool) {
1253
if ((bool)e.
Value
) {
1261
throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.
Value
.GetType().ToString()));
compmod\microsoft\visualbasic\VBCodeProvider.cs (12)
892
if (e.Right is CodePrimitiveExpression && ((CodePrimitiveExpression)e.Right).
Value
== null){
896
if (e.Left is CodePrimitiveExpression && ((CodePrimitiveExpression)e.Left).
Value
== null){
1061
if (e.
Value
is char) {
1062
Output.Write("Global.Microsoft.VisualBasic.ChrW(" + ((IConvertible)e.
Value
).ToInt32(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
1064
else if (e.
Value
is SByte) {
1066
Output.Write(((SByte)e.
Value
).ToString(CultureInfo.InvariantCulture));
1069
else if (e.
Value
is UInt16) {
1070
Output.Write(((UInt16)e.
Value
).ToString(CultureInfo.InvariantCulture));
1073
else if (e.
Value
is UInt32) {
1074
Output.Write(((UInt32)e.
Value
).ToString(CultureInfo.InvariantCulture));
1077
else if (e.
Value
is UInt64) {
1078
Output.Write(((UInt64)e.
Value
).ToString(CultureInfo.InvariantCulture));
compmod\system\codedom\compiler\CodeGenerator.cs (22)
1499
if (e.
Value
== null) {
1502
else if (e.
Value
is string) {
1503
Output.Write(QuoteSnippetString((string)e.
Value
));
1505
else if (e.
Value
is char) {
1506
Output.Write("'" + e.
Value
.ToString() + "'");
1508
else if (e.
Value
is byte) {
1509
Output.Write(((byte)e.
Value
).ToString(CultureInfo.InvariantCulture));
1511
else if (e.
Value
is Int16) {
1512
Output.Write(((Int16)e.
Value
).ToString(CultureInfo.InvariantCulture));
1514
else if (e.
Value
is Int32) {
1515
Output.Write(((Int32)e.
Value
).ToString(CultureInfo.InvariantCulture));
1517
else if (e.
Value
is Int64) {
1518
Output.Write(((Int64)e.
Value
).ToString(CultureInfo.InvariantCulture));
1520
else if (e.
Value
is Single) {
1521
GenerateSingleFloatValue((Single)e.
Value
);
1523
else if (e.
Value
is Double) {
1524
GenerateDoubleValue((Double)e.
Value
);
1526
else if (e.
Value
is Decimal) {
1527
GenerateDecimalValue((Decimal)e.
Value
);
1529
else if (e.
Value
is bool) {
1530
if ((bool)e.
Value
) {
1538
throw new ArgumentException(SR.GetString(SR.InvalidPrimitiveType, e.
Value
.GetType().ToString()));
System.ServiceModel (1)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
209
string nsValue = ((CodePrimitiveExpression)attrArg.Value).
Value
.ToString();
System.Web.Extensions (2)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (2)
1695
if (valueExpression != null && valueExpression.
Value
is string)
1697
valueExpression.Value = ReplaceNamespace(proxyNamespaceHead, configNamespaceHead, (string)valueExpression.
Value
);
System.Workflow.Activities (36)
Rules\Expressions.cs (19)
126
Type resultType = (primitiveExpr.
Value
!= null) ? primitiveExpr.
Value
.GetType() : typeof(NullLiteral);
138
return new RuleLiteralResult(primitiveExpr.
Value
);
144
RuleDecompiler.DecompileObjectLiteral(stringBuilder, primitiveExpr.
Value
);
150
object clonedValue = ConditionHelper.CloneObject(primitiveExpr.
Value
);
159
if (primitiveExpr.
Value
== comperandPrimitive.
Value
)
162
if (primitiveExpr.
Value
== null || comperandPrimitive.
Value
== null)
165
return primitiveExpr.
Value
.Equals(comperandPrimitive.
Value
);
401
int i = (int)primitive.
Value
;
410
long l = (long)primitive.
Value
;
750
object rhsValue = rhsPrimitive.
Value
;
803
if (lhsPrimitive != null && lhsPrimitive.
Value
!= null)
805
object lhsValue = lhsPrimitive.
Value
;
3337
if ((prim != null) && (prim.
Value
!= null))
3338
size = (double)Executor.AdjustType(prim.
Value
.GetType(), prim.
Value
, typeof(double));
Rules\Literal.cs (4)
806
return expression.
Value
.Equals(0);
808
return expression.
Value
.Equals(0U);
810
return expression.
Value
.Equals(0L);
812
return expression.
Value
.Equals(0UL);
Rules\Parser\Parser.cs (1)
2554
return argPrimitive.
Value
;
Rules\RuleValidation.cs (12)
1950
if ((primitive == null) || (primitive.
Value
== null))
1955
switch (Type.GetTypeCode(primitive.
Value
.GetType()))
1958
return ((sbyte)primitive.
Value
== 0);
1960
return ((byte)primitive.
Value
== 0);
1962
return ((short)primitive.
Value
== 0);
1964
return ((ushort)primitive.
Value
== 0);
1966
return ((int)primitive.
Value
== 0);
1968
return ((uint)primitive.
Value
== 0);
1970
return ((long)primitive.
Value
== 0);
1972
return ((ulong)primitive.
Value
== 0);
1974
return ((char)primitive.
Value
== 0);
2270
System.Convert.ChangeType(primitive.
Value
, lhsType, CultureInfo.CurrentCulture);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\Helper.cs (1)
165
argumentValues[index] = (codeArgument.Value as CodePrimitiveExpression).
Value
;