1 write to Value
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\System\CodePrimitiveExpression.cs (1)
44Value = value;
56 references to Value
dotnet-svcutil-lib (56)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
538return !(bool)((CodePrimitiveExpression)arg.Value).Value;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (22)
1750if (e.Value == null) 1754else if (e.Value is string) 1756Output.Write(QuoteSnippetString((string)e.Value)); 1758else if (e.Value is char) 1760Output.Write("'" + e.Value.ToString() + "'"); 1762else if (e.Value is byte) 1764Output.Write(((byte)e.Value).ToString()); 1766else if (e.Value is Int16) 1768Output.Write(((Int16)e.Value).ToString()); 1770else if (e.Value is Int32) 1772Output.Write(((Int32)e.Value).ToString()); 1774else if (e.Value is Int64) 1776Output.Write(((Int64)e.Value).ToString()); 1778else if (e.Value is Single) 1780GenerateSingleFloatValue((Single)e.Value); 1782else if (e.Value is Double) 1784GenerateDoubleValue((Double)e.Value); 1786else if (e.Value is Decimal) 1788GenerateDecimalValue((Decimal)e.Value); 1790else if (e.Value is bool) 1792if ((bool)e.Value) 1803throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString()));
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (32)
1313if (e.Value is char) 1315GeneratePrimitiveChar((char)e.Value); 1317else if (e.Value is SByte) 1320Output.Write(((SByte)e.Value).ToString()); 1322else if (e.Value is UInt16) 1326Output.Write(((UInt16)e.Value).ToString()); 1328else if (e.Value is UInt32) 1330Output.Write(((UInt32)e.Value).ToString()); 1333else if (e.Value is UInt64) 1335Output.Write(((UInt64)e.Value).ToString()); 1352if (e.Value == null) 1356else if (e.Value is string) 1358Output.Write(QuoteSnippetString((string)e.Value)); 1360else if (e.Value is char) 1362Output.Write("'" + e.Value.ToString() + "'"); 1364else if (e.Value is byte) 1366Output.Write(((byte)e.Value).ToString()); 1368else if (e.Value is Int16) 1370Output.Write(((Int16)e.Value).ToString()); 1372else if (e.Value is Int32) 1374Output.Write(((Int32)e.Value).ToString()); 1376else if (e.Value is Int64) 1378Output.Write(((Int64)e.Value).ToString()); 1380else if (e.Value is Single) 1382GenerateSingleFloatValue((Single)e.Value); 1384else if (e.Value is Double) 1386GenerateDoubleValue((Double)e.Value); 1388else if (e.Value is Decimal) 1390GenerateDecimalValue((Decimal)e.Value); 1392else if (e.Value is bool) 1394if ((bool)e.Value) 1405throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
208string nsValue = ((CodePrimitiveExpression)attrArg.Value).Value.ToString();