19 references to IsLiteral
Microsoft.CodeAnalysis.Scripting (2)
ScriptVariable.cs (2)
44public bool IsReadOnly => _field.IsInitOnly || _field.IsLiteral; 65if (_field.IsLiteral)
Microsoft.CodeAnalysis.Test.Utilities (2)
Platform\Custom\MetadataSignatureHelper.cs (2)
622if (field.IsLiteral) 638if (field.IsLiteral)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingTagNamesTest.cs (1)
27.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\ApplicationEnricherTagTests.cs (1)
28.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Enrichment\ProcessEnricherDimensionsTests.cs (1)
27.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
476Contracts.Check(!field.IsStatic && !field.IsInitOnly && !field.IsLiteral);
Microsoft.ML.Data (2)
Data\SchemaDefinition.cs (1)
361if (fieldInfo.IsLiteral)
EntryPoints\InputBuilder.cs (1)
73_ectx.Check(!fieldInfo.IsStatic && !fieldInfo.IsInitOnly && !fieldInfo.IsLiteral);
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
496ectx.Assert(!fieldInfo.IsStatic && !fieldInfo.IsInitOnly && !fieldInfo.IsLiteral);
System.Linq.Expressions (7)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
152if (!field.IsLiteral && !field.IsInitOnly)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
851if (fi.IsLiteral)
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
271if (field.IsLiteral)
System\Linq\Expressions\Expression.cs (1)
274if (!(field.IsInitOnly || field.IsLiteral))
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
693if (fi.IsLiteral) 2318if (!field.IsLiteral && !field.IsInitOnly) 2449if (fi.IsLiteral)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
130public sealed override object? GetRawConstantValue() => IsLiteral ? ComputeRawConstantValue() : throw new InvalidOperationException();