13 references to InitOnly
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
56var proxyField = type.DefineField("_proxy", typeof(IClientProxy), FieldAttributes.Private | FieldAttributes.InitOnly);
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
763result |= FieldAttributes.InitOnly;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
461return (_flags & FieldAttributes.InitOnly) != 0;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InitOnlyMemberTests.cs (1)
1507Assert.Equal(System.Reflection.FieldAttributes.InitOnly | System.Reflection.FieldAttributes.Private, peBackingField.Flags);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
251Assert.Equal(FieldAttributes.Private | FieldAttributes.InitOnly, field.Attributes);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrValue.cs (1)
469if (field.Attributes.HasFlag(System.Reflection.FieldAttributes.Literal) || field.Attributes.HasFlag(System.Reflection.FieldAttributes.InitOnly))
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
233if ((attributes & FieldAttributes.InitOnly) != 0)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
217Return (_flags And FieldAttributes.InitOnly) <> 0
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (2)
386if ((_fieldInfo.Attributes & FieldAttributes.InitOnly) == FieldAttributes.InitOnly &&
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (1)
19public bool IsInitOnly => (Attributes & FieldAttributes.InitOnly) != 0;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
472if (((criteria & FieldAttributes.InitOnly) != 0) && (attr & FieldAttributes.InitOnly) == 0)