261 references to BackingField
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (2)
1461
field = property.
BackingField
;
1469
field = property.
BackingField
;
Binder\Binder_Statements.cs (1)
1820
if (propertySymbol is SourcePropertySymbolBase {
BackingField
: { } } sourceProperty)
Compilation\InitializerSemanticModel.cs (1)
167
BoundFieldEqualsValue result = binder.BindFieldInitializer(property.
BackingField
, equalsValue, diagnostics);
Compilation\SyntaxTreeSemanticModel.cs (1)
1143
GetFieldOrPropertyInitializerBinder(propertySymbol.
BackingField
, defaultOuter(), propertyDecl.Initializer));
Compiler\MethodBodySynthesizer.cs (1)
187
var field = property.
BackingField
;
FlowAnalysis\AbstractFlowPass.cs (2)
573
var backingField = (access.PropertySymbol as SourcePropertySymbolBase)?.
BackingField
;
2274
var backingField = (property as SourcePropertySymbolBase)?.
BackingField
;
FlowAnalysis\DefiniteAssignment.cs (3)
1108
member = (propSymbol as SourcePropertySymbolBase)?.
BackingField
;
1440
var backingField = (property as SourcePropertySymbolBase)?.
BackingField
;
2734
var backingField = (property as SourcePropertySymbolBase)?.
BackingField
;
FlowAnalysis\NullableWalker.cs (5)
703
var shouldForcePropertyAnalysis = !constructorEnforcesRequiredMembers && member is not SourcePropertySymbolBase {
BackingField
: not null } && member.IsRequired();
1049
=> requiredMember is SourcePropertySymbolBase {
BackingField
: { } backingField } ? backingField : requiredMember;
1061
var symbolAnnotations = property is SourcePropertySymbolBase { UsesFieldKeyword: true,
BackingField
: { } field }
2287
else if (symbol is SourcePropertySymbolBase { UsesFieldKeyword: true,
BackingField
: { } backingField })
10569
var field = property.
BackingField
;
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
314
var backingField = autoProp.
BackingField
;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
1750
definition.PartialImplementationPart == (object)implementation && implementation.
BackingField
!= (object)member)
5182
builder.AddInstanceInitializerForPositionalMembers(new FieldOrPropertyInitializer(property.
BackingField
, paramList.Parameters[param.Ordinal]));
Symbols\Source\SourcePropertySymbol.cs (1)
198
|| this.
BackingField
is not null);
Symbols\Source\SourcePropertySymbolBase.cs (2)
747
if (
BackingField
is null)
1320
_ =
BackingField
?.GetAttributes();
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
228
NullableWalker.AnalyzeIfNeeded(binder, boundGetAccessor, boundGetAccessor.Syntax, diagnostics, symbolAndGetterNullResilienceData: (getAccessor, new NullableWalker.GetterNullResilienceData(_property.
BackingField
, assumedNullableAnnotation)));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
Emit\EmitMetadataTests.cs (7)
948
var pBack = p.
BackingField
;
954
var qBack = q.
BackingField
;
960
var rBack = r.
BackingField
;
966
var sBack = s.
BackingField
;
1025
var qBack = q.
BackingField
;
1031
var rBack = r.
BackingField
;
1037
var sBack = s.
BackingField
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (225)
FieldKeywordTests.cs (225)
1048
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: true,
BackingField
: { } });
1049
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: true,
BackingField
: { } });
1050
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1051
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1052
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1053
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1151
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "Q1", IsAutoProperty: true,
BackingField
: { } });
1152
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "Q2", IsAutoProperty: true,
BackingField
: { } });
1153
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "Q3", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1154
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "Q4", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
1647
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1648
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1649
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1650
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1651
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1652
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1653
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
1817
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1818
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1819
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1820
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1821
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1822
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1823
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1824
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1825
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1984
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1985
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1986
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1987
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1988
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1989
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1990
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
1991
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
1992
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2090
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2091
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2092
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2093
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2094
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2095
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2096
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2097
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2098
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2174
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2175
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2176
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2177
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2178
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2179
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2180
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
2181
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2182
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
2295
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2296
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2297
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
2298
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2299
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2300
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2301
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2302
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2303
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2377
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
2378
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2379
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
2380
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2381
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2382
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
2383
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
2384
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P8", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
2385
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P9", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8510
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8511
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8584
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8585
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8586
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
8587
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
8588
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8679
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
8680
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
8752
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8753
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8815
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8816
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
8869
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8870
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
8947
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
8948
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
8949
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
8950
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { HasInitializer: true } });
9022
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
9023
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
9024
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
9025
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { HasInitializer: true } });
9036
var field = (property.
BackingField
is null) ? null : (SynthesizedBackingFieldSymbol)fields[fieldIndex++];
9045
Assert.Same(property.
BackingField
, fieldOpt);
9051
Assert.Same(property.
BackingField
, otherPart.
BackingField
);
9122
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9123
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9198
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9199
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9200
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9201
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9202
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9203
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9275
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9276
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9277
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9278
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "Q1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9279
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "Q2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9280
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "Q3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9398
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9399
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9400
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9401
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9402
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9403
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P6", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
9404
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P7", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
9405
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "Q1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9406
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "Q2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9407
Assert.True(actualProperties[9] is SourcePropertySymbol { Name: "Q3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9408
Assert.True(actualProperties[10] is SourcePropertySymbol { Name: "Q4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9409
Assert.True(actualProperties[11] is SourcePropertySymbol { Name: "Q5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9410
Assert.True(actualProperties[12] is SourcePropertySymbol { Name: "Q6", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
9411
Assert.True(actualProperties[13] is SourcePropertySymbol { Name: "Q7", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
9483
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9484
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9485
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: { } });
9552
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9553
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9554
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9555
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
9556
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9681
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9682
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9683
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9684
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9685
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9686
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9687
Assert.True(actualProperties[6] is SourcePropertySymbol { Name: "P5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9688
Assert.True(actualProperties[7] is SourcePropertySymbol { Name: "P6", IsPartialDefinition: false, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9689
Assert.True(actualProperties[8] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: false, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9690
Assert.True(actualProperties[9] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: false, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9691
Assert.True(actualProperties[10] is SourcePropertySymbol { Name: "P5", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
9692
Assert.True(actualProperties[11] is SourcePropertySymbol { Name: "P6", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9892
var field = property.
BackingField
;
9972
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9973
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9974
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
9975
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10049
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10050
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
10051
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10052
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "P4", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: true,
BackingField
: { } });
10123
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
10124
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10125
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
10126
Assert.True(actualProperties[3] is SourcePropertySymbol { Name: "Q1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
10127
Assert.True(actualProperties[4] is SourcePropertySymbol { Name: "Q2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10128
Assert.True(actualProperties[5] is SourcePropertySymbol { Name: "Q3", IsPartialDefinition: true, IsAutoProperty: true, UsesFieldKeyword: false,
BackingField
: { } });
10211
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10212
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10213
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10278
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10279
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P2", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10280
Assert.True(actualProperties[2] is SourcePropertySymbol { Name: "P3", IsPartialDefinition: true, IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10476
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
10480
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P1", IsAutoProperty: false, UsesFieldKeyword: true,
BackingField
: { } });
10572
Assert.True(actualProperties[0] is SourcePropertySymbol { Name: "P2", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
10573
Assert.True(actualProperties[1] is SourcePropertySymbol { Name: "P3", IsAutoProperty: false, UsesFieldKeyword: false,
BackingField
: null });
10870
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
10871
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
10892
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
10893
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
10924
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
10925
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11004
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11005
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11024
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11025
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11045
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11046
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11064
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11065
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11084
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11085
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11108
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11109
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11138
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11139
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11166
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11167
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11193
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11194
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11217
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11218
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11243
Assert.False(prop.
BackingField
.InfersNullableAnnotation);
11244
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11269
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11270
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11298
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11299
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11322
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11323
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11349
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11350
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11378
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11379
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11408
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11409
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11436
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11437
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11475
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11476
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11507
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11508
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11542
Assert.False(prop.
BackingField
.InfersNullableAnnotation);
11543
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11572
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11573
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11596
Assert.Equal(NullableAnnotation.Annotated, prop.
BackingField
.GetInferredNullableAnnotation());
11597
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
11638
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.GetInferredNullableAnnotation());
11639
Assert.Equal(NullableAnnotation.NotAnnotated, prop.
BackingField
.TypeWithAnnotations.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\DefaultInterfaceImplementationTests.cs (4)
3411
var field1 = ((SourcePropertySymbolBase)p1).
BackingField
;
3481
var field1 = ((SourcePropertySymbolBase)p1).
BackingField
;
3570
var field1 = ((SourcePropertySymbolBase)p1).
BackingField
;
3636
var field1 = ((SourcePropertySymbolBase)p1).
BackingField
;
Symbols\Source\RecordTests.cs (2)
164
var backing = x.
BackingField
;
198
backing = y.
BackingField
;