9 overrides of GetMethod
Microsoft.CodeAnalysis.CSharp (9)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
71
public override MethodSymbol
GetMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
194
public override MethodSymbol
GetMethod
Symbols\ErrorPropertySymbol.cs (1)
57
public override MethodSymbol
GetMethod
{ get { return null; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
601
public override MethodSymbol
GetMethod
Symbols\NativeIntegerTypeSymbol.cs (1)
450
public override MethodSymbol?
GetMethod
{ get; }
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
123
public override MethodSymbol
GetMethod
Symbols\SignatureOnlyPropertySymbol.cs (1)
102
public override MethodSymbol
GetMethod
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
538
public sealed override MethodSymbol?
GetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
86
public override MethodSymbol
GetMethod
788 references to GetMethod
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder.ValueChecks.cs (4)
1889
PropertySymbol p => p.
GetMethod
,
2073
PropertySymbol p => p.
GetMethod
?? p.SetMethod,
2381
PropertySymbol p => p.
GetMethod
?? p.SetMethod,
2614
PropertySymbol p => p.
GetMethod
?.IsEffectivelyReadOnly != false && p.SetMethod?.IsEffectivelyReadOnly != false,
Binder\Binder_Attributes.cs (1)
621
var getMethod = propertySymbol.
GetMethod
;
Binder\Binder_Lookup.cs (1)
1552
method1 = property.
GetMethod
;
Emitter\Model\PropertySymbolAdapter.cs (2)
32
var getMethod = AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter();
69
MethodSymbol getMethod = AdaptedPropertySymbol.
GetMethod
;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
521
var getMethod = property.AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (1)
3496
property.GetOwnOrInheritedSetMethod() ?? property.
GetMethod
;
FlowAnalysis\NullableWalker.cs (2)
9804
ApplyMemberPostConditions(node.ReceiverOpt, property.
GetMethod
);
9926
var getMethod = ((PropertySymbol)member.OriginalDefinition).
GetMethod
;
FlowAnalysis\NullableWalker_Patterns.cs (2)
505
if (property.
GetMethod
is not null)
508
ApplyMemberPostConditions(inputSlot, property.
GetMethod
);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
358
MethodSymbol isCompletedMethod = ((object)node.AwaitableInfo.IsCompleted != null) ? VisitMethodSymbol(node.AwaitableInfo.IsCompleted.
GetMethod
) : null;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
980
membersBuilder.Add(_bound.MethodInfo(AnonymousTypeManager.GetAnonymousTypeProperty(anonType, i).
GetMethod
));
Lowering\IteratorRewriter\IteratorRewriter.cs (3)
159
var getter = symbol.
GetMethod
;
216
var IEnumerator_get_Current = F.SpecialProperty(SpecialMember.System_Collections_IEnumerator__Current).
GetMethod
;
219
var IEnumeratorOfElementType_get_Current = F.SpecialProperty(SpecialMember.System_Collections_Generic_IEnumerator_T__Current).
GetMethod
.AsMember(IEnumeratorOfElementType);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
183
MethodMayMutateReceiver(node.ReceiverOpt, node.PropertySymbol.
GetMethod
);
317
MethodMayMutateReceiver(node.ReceiverOpt, node.Indexer.
GetMethod
);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
242
Debug.Assert(e.Property.
GetMethod
.ParameterCount == 1);
243
Debug.Assert(e.Property.
GetMethod
.Parameters[0].Type.SpecialType == SpecialType.System_Int32);
244
TypeSymbol type = e.Property.
GetMethod
.ReturnType;
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
261
MethodSymbol invocationListAccessor = invocationListProperty.
GetMethod
;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
375
MethodSymbol currentManagedThreadIdMethod = currentManagedThreadIdProperty.
GetMethod
;
Symbols\MemberSymbolExtensions.cs (1)
135
return isImplementableAndNotPublic(propertySymbol.
GetMethod
) || isImplementableAndNotPublic(propertySymbol.SetMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
394
MethodSymbol getMethod = curr.
GetMethod
;
698
if (!prop.
GetMethod
.IsImplementable())
Symbols\NativeIntegerTypeSymbol.cs (1)
437
GetMethod = getAccessor(container, this, underlyingProperty.
GetMethod
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
260
MethodSymbol correspondingAccessor = accessorIsGetter ? propertyHiddenByProperty.
GetMethod
: propertyHiddenByProperty.SetMethod;
Symbols\PropertySymbol.cs (2)
181
return (object)property.
GetMethod
== null;
256
MethodSymbol accessor =
GetMethod
?? SetMethod;
Symbols\PropertySymbolExtensions.cs (1)
21
MethodSymbol getMethod = property.
GetMethod
;
Symbols\PublicModel\PropertySymbol.cs (1)
53
get { return _underlying.
GetMethod
.GetPublicSymbol(); }
Symbols\Retargeting\RetargetingPropertySymbol.cs (2)
127
return (object)_underlyingProperty.
GetMethod
== null
129
: this.RetargetingTranslator.Retarget(_underlyingProperty.
GetMethod
);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
318
checkAccessorIsAccessibleIfImplementable(propertySymbol.
GetMethod
);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3576
MethodSymbol accessor = getNotSet ? propertySymbol.
GetMethod
: propertySymbol.SetMethod;
3654
var locationFrom = (Symbol)(getNotSet ? propertySymbol.
GetMethod
: propertySymbol.SetMethod) ?? propertySymbol;
4008
Debug.Assert(isRecordClass || !members.Any(m => m is PropertySymbol {
GetMethod
.IsEffectivelyReadOnly: false }));
4290
else if (existingMember is PropertySymbol { IsStatic: false,
GetMethod
: { } } prop
4398
members.Add(equalityContract.
GetMethod
);
4428
if (equalityContract.
GetMethod
is null)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
571
var getMethod = property.
GetMethod
;
817
else if (associatedProperty.
GetMethod
== overridingMember && (object)overriddenProperty.
GetMethod
== null)
1097
if (overridingProperty.
GetMethod
is object)
1101
overridingProperty.
GetMethod
.Locations[0],
1103
overridingProperty.
GetMethod
,
1140
if (overridingProperty.
GetMethod
!= ownOrInheritedGetMethod && !AccessCheck.IsSymbolAccessible(ownOrInheritedGetMethod, overridingType, ref useSiteInfo))
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
617
? explicitlyImplementedPropertyOpt.
GetMethod
664
? explicitlyImplementedPropertyOpt.
GetMethod
Symbols\Source\SourcePropertySymbolBase.cs (1)
786
CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.
GetMethod
, explicitlyImplementedProperty, diagnostics);
Symbols\SubstitutedPropertySymbol.cs (1)
90
MethodSymbol originalGetMethod = OriginalDefinition.
GetMethod
;
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
26
Debug.Assert(positionalMembers.All(p => p is PropertySymbol {
GetMethod
: not null } or FieldSymbol));
117
var getterMethod = property.
GetMethod
;
118
return property.
GetMethod
is not null && !getterMethod.IsEffectivelyReadOnly;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
76
if (_equalityContract.
GetMethod
is null)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
59
if (_equalityContract.
GetMethod
is null)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (3)
314
var getterMethod = property.
GetMethod
;
315
if (property.
GetMethod
is not null && !getterMethod.IsEffectivelyReadOnly)
331
return !property.IsIndexer && !property.IsOverride && property.
GetMethod
is not null;
Symbols\TypeSymbol.cs (3)
1404
interfaceAccessor1 = interfaceProperty.
GetMethod
;
1879
var implementingGetMethod = implementedProperty.
GetMethod
.IsImplementable() ?
1889
implementedProperty.
GetMethod
,
Symbols\VarianceSafety.cs (2)
192
bool hasGetter = (object)property.
GetMethod
!= null;
199
requireInputSafety: hasSetter || !(property.
GetMethod
?.RefKind == RefKind.None),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (63)
BreakingChanges.cs (2)
106
Assert.Equal(Accessibility.Public, baseProperty1.
GetMethod
.DeclaredAccessibility);
110
Assert.Equal(Accessibility.ProtectedOrInternal, baseProperty2.
GetMethod
.DeclaredAccessibility);
CodeGen\CodeGenFunctionPointersTests.cs (1)
799
verifier(property.
GetMethod
.ReturnType);
CodeGen\CodeGenOverridingAndHiding.cs (3)
3780
var methodA = classA.GetMember<PropertySymbol>("P").
GetMethod
;
3782
var methodC = classC.GetMember<PropertySymbol>("P").
GetMethod
;
3854
var methodB = classB.GetMember<PropertySymbol>("P").
GetMethod
;
CodeGen\CodeGenReadonlyStructTests.cs (38)
1361
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Handle));
1362
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Signature.ReturnParam.Handle));
1367
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Handle));
1368
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Signature.ReturnParam.Handle));
1371
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Handle));
1372
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Signature.ReturnParam.Handle));
1377
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Handle));
1378
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Signature.ReturnParam.Handle));
1383
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p5.
GetMethod
).Handle));
1384
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p5.
GetMethod
).Signature.ReturnParam.Handle));
1441
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Handle));
1442
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Signature.ReturnParam.Handle));
1445
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Handle));
1446
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Signature.ReturnParam.Handle));
1449
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Handle));
1450
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Signature.ReturnParam.Handle));
1453
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Handle));
1454
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Signature.ReturnParam.Handle));
1499
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Handle));
1500
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p1.
GetMethod
).Signature.ReturnParam.Handle));
1503
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Handle));
1504
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p2.
GetMethod
).Signature.ReturnParam.Handle));
1507
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Handle));
1508
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p3.
GetMethod
).Signature.ReturnParam.Handle));
1513
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Handle));
1514
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p4.
GetMethod
).Signature.ReturnParam.Handle));
1519
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p5.
GetMethod
).Handle));
1520
Assert.False(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)p5.
GetMethod
).Signature.ReturnParam.Handle));
1574
verifyReadOnly(s1.GetProperty("P1").
GetMethod
, true, RefKind.RefReadOnly);
1577
verifyReadOnly(s1.GetProperty("P2").
GetMethod
, true, RefKind.RefReadOnly);
1579
verifyReadOnly(s1.GetProperty("P3").
GetMethod
, true, RefKind.RefReadOnly);
1582
verifyReadOnly(s1.GetProperty("P4").
GetMethod
, false, RefKind.Ref);
1585
verifyReadOnly(s1.GetProperty("P5").
GetMethod
, false, null);
1595
verifyReadOnly(s2.GetProperty("P1").
GetMethod
, true, RefKind.RefReadOnly);
1596
verifyReadOnly(s2.GetProperty("P2").
GetMethod
, true, RefKind.RefReadOnly);
1599
verifyReadOnly(s2.GetProperty("P4").
GetMethod
, false, null);
2582
Assert.Equal(isReadOnly, type.GetProperty("P").
GetMethod
.IsDeclaredReadOnly);
2583
Assert.Equal(isReadOnly, type.GetProperty("P").
GetMethod
.IsEffectivelyReadOnly);
CodeGen\CodeGenTupleTest.cs (6)
13268
Assert.True(m10I1P1.
GetMethod
.IsExplicitInterfaceImplementation);
13269
Assert.Equal("System.Int32 I1.P1.get", m10I1P1.
GetMethod
.ExplicitInterfaceImplementations.Single().ToTestDisplayString());
15837
Assert.True(m1P1Get.Equals(m1P1.
GetMethod
, TypeCompareKind.ConsiderEverything));
15867
Assert.True(m1thisGet.Equals(m1this.
GetMethod
, TypeCompareKind.ConsiderEverything));
23937
Assert.Equal("ref (System.Int32, System.Object) ConsoleApplication5.C2.Goo.get", m.
GetMethod
.ToTestDisplayString());
23941
Assert.Equal("ref (System.Int32, dynamic) ClassLibrary1.C1.Goo.get", b.
GetMethod
.ToTestDisplayString());
CodeGen\IndexerTests.cs (2)
160
var getMethod = indexer.
GetMethod
;
262
var getMethod = indexer.
GetMethod
;
Emit\EmitMetadataTests.cs (11)
813
Assert.NotNull(property.
GetMethod
);
821
Assert.NotNull(property.
GetMethod
);
1097
Assert.True(propertyP.
GetMethod
.IsVirtual);
1098
Assert.False(propertyP.
GetMethod
.IsOverride);
1101
Assert.True(propertyQ.
GetMethod
.IsVirtual);
1102
Assert.False(propertyQ.
GetMethod
.IsOverride);
1116
Assert.False(propertyP.
GetMethod
.IsVirtual);
1117
Assert.True(propertyP.
GetMethod
.IsOverride);
1170
CheckPropertyAccessorAccessibility(property, propertyAccessibility, property.
GetMethod
, getterAccessibility);
1281
Assert.Equal(p.
GetMethod
.AssociatedSymbol, p);
1309
VerifyAutoPropertyAccessor(property, property.
GetMethod
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (20)
Attributes\AttributeTests.cs (9)
1676
attrs = prop.
GetMethod
.GetAttributes();
1767
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.
GetMethod
.GetAttributes()));
1775
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.
GetMethod
.GetAttributes()));
1783
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.
GetMethod
.GetAttributes()));
1791
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.
GetMethod
.GetAttributes()));
2427
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.
GetMethod
.GetAttributes()));
2437
AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.
GetMethod
.GetAttributes()));
3750
var getter = property.
GetMethod
;
3984
var getter = property.
GetMethod
;
Attributes\AttributeTests_Conditional.cs (3)
156
var propGetMethod = propP1.
GetMethod
;
165
propGetMethod = propP2.
GetMethod
;
171
propGetMethod = propP3.
GetMethod
;
Attributes\AttributeTests_Dynamic.cs (4)
391
ValidateDynamicAttribute(prop1.
GetMethod
.GetReturnTypeAttributes(), expectedDynamicAttribute: true);
402
ValidateDynamicAttribute(prop2.
GetMethod
.GetReturnTypeAttributes(), expectedDynamicAttribute: true, expectedTransformFlags: _expectedTransformFlags);
422
ValidateDynamicAttribute(indexer.
GetMethod
.GetReturnTypeAttributes(), expectedDynamicAttribute: true);
423
ValidateDynamicAttribute(indexer.
GetMethod
.Parameters[0].GetAttributes(), expectedDynamicAttribute: true);
Attributes\AttributeTests_Nullable.cs (2)
2536
var method = property.
GetMethod
;
2562
var method = property.
GetMethod
;
Attributes\AttributeTests_Synthesized.cs (2)
229
Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)p.
GetMethod
).Handle).Single().AttributeClass.Name);
234
Assert.Empty(peModule.GetCustomAttributesForToken(((PEMethodSymbol)q.
GetMethod
).Handle));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\ArglistTests.cs (4)
1258
var getter = indexer.
GetMethod
;
1284
var getter = indexer.
GetMethod
;
1310
var getter = indexer.
GetMethod
;
1336
var getter = indexer.
GetMethod
;
Semantics\InitOnlyMemberTests.cs (11)
46
Assert.False(property.
GetMethod
.IsInitOnly);
610
Assert.False(property.
GetMethod
.IsInitOnly);
641
Assert.False(property.
GetMethod
.IsInitOnly);
900
Assert.False(property.
GetMethod
.IsInitOnly);
1155
Assert.False(property.
GetMethod
.IsInitOnly);
1456
var getter = property.
GetMethod
;
1457
Assert.Empty(property.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers);
3279
Assert.Null(property1.
GetMethod
);
3284
Assert.Null(property2.
GetMethod
);
3371
Assert.Null(property1.
GetMethod
);
3377
Assert.Null(property2.
GetMethod
);
Semantics\NativeIntegerTests.cs (1)
1824
Assert.Same(getMethod, property.
GetMethod
);
Semantics\NullableReferenceTypesTests.cs (9)
12887
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13039
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
13130
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16617
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16699
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
16781
Assert.True(property.TypeWithAnnotations.Equals(property.
GetMethod
.ReturnTypeWithAnnotations, TypeCompareKind.ConsiderEverything));
28255
var getter = property.
GetMethod
;
28358
var getter = property.
GetMethod
;
45878
var getter = property.
GetMethod
;
Semantics\ReadOnlyStructsTests.cs (7)
1325
Assert.Equal(isReadOnly, property.
GetMethod
.IsDeclaredReadOnly);
1326
Assert.Equal(isReadOnly, property.
GetMethod
.IsEffectivelyReadOnly);
1327
Assert.Equal(isReadOnly, property.
GetMethod
.GetPublicSymbol().IsReadOnly);
1613
var moduleGetter = moduleComp.GetMember<PropertySymbol>("S.P1").
GetMethod
;
1618
var dllGetter = dllComp.GetMember<PropertySymbol>("S.P1").
GetMethod
;
1641
var moduleGetter = moduleComp.GetMember<PropertySymbol>("S.P1").
GetMethod
;
1646
var dllGetter = dllComp.GetMember<PropertySymbol>("S.P1").
GetMethod
;
Semantics\RecordTests.cs (3)
12382
VerifyAccessor(property.
GetMethod
, getterName);
12482
verifyReturnType(property.
GetMethod
, CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Int32)));
12486
verifyReturnType(property.
GetMethod
,
Semantics\RefFieldTests.cs (2)
10519
VerifyParameterSymbol(comp.GetMember<PropertySymbol>("A.this[]").
GetMethod
.Parameters[0], "scoped in System.Object o", RefKind.In, ScopedKind.ScopedRef);
24316
VerifyParameterSymbol(comp.GetMember<PropertySymbol>("S.P").
GetMethod
.ThisParameter, "ref S this", RefKind.Ref, ScopedKind.None, expectedHasUnscopedRefAttribute: true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (597)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (32)
46
var baseGetter = baseProperty.
GetMethod
;
51
var derivedGetter = derivedProperty.
GetMethod
;
105
var baseGetter = baseProperty.
GetMethod
;
110
var derived1Getter = derived1Property.
GetMethod
;
115
Assert.Null(derived2Property.
GetMethod
);
156
var baseGetter = baseProperty.
GetMethod
;
161
var derivedGetter = derivedProperty.
GetMethod
;
211
var baseGetter = baseProperty.
GetMethod
;
215
var derived1Getter = derived1Property.
GetMethod
;
220
Assert.Null(derived2Property.
GetMethod
);
319
var ilGetter = global.GetMember<NamedTypeSymbol>("Base").GetMember<PropertySymbol>("P").
GetMethod
;
320
var csharpGetter1 = global.GetMember<NamedTypeSymbol>("Derived1").GetMember<PropertySymbol>("P").
GetMethod
;
321
var csharpGetter2 = global.GetMember<NamedTypeSymbol>("Derived2").GetMember<PropertySymbol>("P").
GetMethod
;
349
var ilGetter = global.GetMember<NamedTypeSymbol>("I").GetMember<PropertySymbol>("P").
GetMethod
;
351
var csharpGetter = @class.GetMember<PropertySymbol>("P").
GetMethod
;
382
var ilGetter = global.GetMember<NamedTypeSymbol>("I").GetMember<PropertySymbol>("P").
GetMethod
;
384
var csharpGetter = @class.GetProperty("I.P").
GetMethod
;
423
var interfaceGetter = interfaceProperty.
GetMethod
;
428
var baseGetter = baseProperty.
GetMethod
;
482
var derivedGetter = derivedProperty.
GetMethod
;
570
var interfaceGetter = interfaceProperty.
GetMethod
;
575
var baseGetter = baseProperty.
GetMethod
;
580
var derivedGetter = derivedProperty.
GetMethod
;
638
var interfaceGetter = interfaceProperty.
GetMethod
;
643
var derived1Getter = derived1Property.
GetMethod
;
698
var interface1Getter = interface1Property.
GetMethod
;
703
var interface2Getter = interface2Property.
GetMethod
;
708
var interface3Getter = interface3Property.
GetMethod
;
757
var interfacePGetter = interfaceP.
GetMethod
;
761
var interfaceQGetter = interfaceQ.
GetMethod
;
767
var classPGetter = classP.
GetMethod
;
771
var classQGetter = classQ.
GetMethod
;
Symbols\AnonymousTypesSymbolTests.cs (1)
1106
var getter = property.
GetMethod
;
Symbols\CovariantReturnTests.cs (2)
304
if (property.
GetMethod
is MethodSymbol getMethod && overriddenProperty.
GetMethod
is MethodSymbol overriddenGetMethod)
Symbols\CSharpCompilerFeatureRequiredTests.cs (2)
175
Assert.True(onPropertyGetterProperty.
GetMethod
.HasUnsupportedMetadata);
182
Assert.False(onPropertySetterProperty.
GetMethod
.HasUnsupportedMetadata);
Symbols\CustomModifiersTests.cs (2)
1234
Assert.Equal("System.Int32 modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsLong) CL3.Test.get", test.
GetMethod
.ToTestDisplayString());
1235
Assert.True(test.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.SequenceEqual(test.SetMethod.Parameters.First().TypeWithAnnotations.CustomModifiers));
Symbols\DefaultInterfaceImplementationTests.cs (345)
2685
ValidateAccessor(p1.
GetMethod
);
2689
Assert.Null(p1.
GetMethod
);
2730
peModule.Module.GetMethodDefPropsOrThrow(((PEMethodSymbol)p1.
GetMethod
).Handle, out _, out _, out _, out rva);
2747
Assert.Same(p1.
GetMethod
, test1.FindImplementationForInterfaceMember(p1.
GetMethod
));
2766
var getP1 = p1.
GetMethod
;
3005
Assert.Null(p1.
GetMethod
);
3041
Assert.Null(p1.
GetMethod
);
3077
Assert.Null(p1.
GetMethod
);
3107
Assert.True(p1.
GetMethod
.IsAbstract);
3132
Assert.True(p1.
GetMethod
.IsAbstract);
3157
Assert.True(p1.
GetMethod
.IsVirtual);
3196
Assert.Null(p1.
GetMethod
);
3230
Assert.Null(p1.
GetMethod
);
3261
Assert.Null(p1.
GetMethod
);
3291
Assert.True(p1.
GetMethod
.IsAbstract);
3316
Assert.True(p1.
GetMethod
.IsAbstract);
3337
Assert.True(p1.
GetMethod
.IsVirtual);
3382
var getP1 = p1.
GetMethod
;
3438
var getP1 = p1.
GetMethod
;
3590
Assert.Same(p1.
GetMethod
, derived.FindImplementationForInterfaceMember(p1.
GetMethod
));
3591
Assert.Same(p2.
GetMethod
, derived.FindImplementationForInterfaceMember(p2.
GetMethod
));
3592
Assert.Same(p3.
GetMethod
, derived.FindImplementationForInterfaceMember(p3.
GetMethod
));
3593
Assert.Same(p4.
GetMethod
, derived.FindImplementationForInterfaceMember(p4.
GetMethod
));
3596
Assert.Same(p7.
GetMethod
, derived.FindImplementationForInterfaceMember(p7.
GetMethod
));
3597
Assert.Same(p8.
GetMethod
, derived.FindImplementationForInterfaceMember(p8.
GetMethod
));
3825
Assert.Equal("System.Int32 Test.I1.P1.get", derived.FindImplementationForInterfaceMember(p1.
GetMethod
).ToTestDisplayString());
3826
Assert.Equal("System.Int32 Test.I1.P2.get", derived.FindImplementationForInterfaceMember(p2.
GetMethod
).ToTestDisplayString());
3827
Assert.Equal("System.Int32 Test.I1.P3.get", derived.FindImplementationForInterfaceMember(p3.
GetMethod
).ToTestDisplayString());
3828
Assert.Equal("System.Int32 Test.I1.P4.get", derived.FindImplementationForInterfaceMember(p4.
GetMethod
).ToTestDisplayString());
3831
Assert.Equal("System.Int32 Test.I1.P7.get", derived.FindImplementationForInterfaceMember(p7.
GetMethod
).ToTestDisplayString());
3832
Assert.Equal("System.Int32 Test.I1.P8.get", derived.FindImplementationForInterfaceMember(p8.
GetMethod
).ToTestDisplayString());
3977
Assert.Equal("System.Int32 Test.P1.get", derived.FindImplementationForInterfaceMember(p1.
GetMethod
).ToTestDisplayString());
3978
Assert.Equal("System.Int32 Test.P2.get", derived.FindImplementationForInterfaceMember(p2.
GetMethod
).ToTestDisplayString());
3979
Assert.Equal("System.Int32 Test.P3.get", derived.FindImplementationForInterfaceMember(p3.
GetMethod
).ToTestDisplayString());
3980
Assert.Equal("System.Int32 Test.P4.get", derived.FindImplementationForInterfaceMember(p4.
GetMethod
).ToTestDisplayString());
3983
Assert.Equal("System.Int32 Test.P7.get", derived.FindImplementationForInterfaceMember(p7.
GetMethod
).ToTestDisplayString());
3984
Assert.Equal("System.Int32 Test.P8.get", derived.FindImplementationForInterfaceMember(p8.
GetMethod
).ToTestDisplayString());
4166
Assert.True(p1.
GetMethod
.IsVirtual);
4167
Assert.True(p3.
GetMethod
.IsVirtual);
4169
Assert.True(p7.
GetMethod
.IsVirtual);
4172
Assert.True(p1.
GetMethod
.IsMetadataVirtual());
4173
Assert.True(p3.
GetMethod
.IsMetadataVirtual());
4175
Assert.True(p7.
GetMethod
.IsMetadataVirtual());
4178
Assert.False(p1.
GetMethod
.IsAbstract);
4179
Assert.False(p3.
GetMethod
.IsAbstract);
4181
Assert.False(p7.
GetMethod
.IsAbstract);
4184
Assert.Same(p1.
GetMethod
, derived.FindImplementationForInterfaceMember(p1.
GetMethod
));
4185
Assert.Same(p3.
GetMethod
, derived.FindImplementationForInterfaceMember(p3.
GetMethod
));
4187
Assert.Same(p7.
GetMethod
, derived.FindImplementationForInterfaceMember(p7.
GetMethod
));
4323
Assert.Null(test2.FindImplementationForInterfaceMember(p1.
GetMethod
));
4324
Assert.Null(test2.FindImplementationForInterfaceMember(p3.
GetMethod
));
4326
Assert.Null(test2.FindImplementationForInterfaceMember(p7.
GetMethod
));
4731
Assert.True(p1.
GetMethod
.IsStatic);
4732
Assert.True(p3.
GetMethod
.IsStatic);
4734
Assert.True(p7.
GetMethod
.IsStatic);
4737
Assert.False(p1.
GetMethod
.IsVirtual);
4738
Assert.False(p3.
GetMethod
.IsVirtual);
4740
Assert.False(p7.
GetMethod
.IsVirtual);
4743
Assert.False(p1.
GetMethod
.IsMetadataVirtual());
4744
Assert.False(p3.
GetMethod
.IsMetadataVirtual());
4746
Assert.False(p7.
GetMethod
.IsMetadataVirtual());
4749
Assert.False(p1.
GetMethod
.IsAbstract);
4750
Assert.False(p3.
GetMethod
.IsAbstract);
4752
Assert.False(p7.
GetMethod
.IsAbstract);
4755
Assert.Null(derived.FindImplementationForInterfaceMember(p1.
GetMethod
));
4756
Assert.Null(derived.FindImplementationForInterfaceMember(p3.
GetMethod
));
4758
Assert.Null(derived.FindImplementationForInterfaceMember(p7.
GetMethod
));
4939
Assert.Null(p1.
GetMethod
);
4967
Assert.True(p1.
GetMethod
.IsAbstract);
5004
Assert.Null(p1.
GetMethod
);
5032
Assert.True(p1.
GetMethod
.IsAbstract);
5073
var getP1 = p1.
GetMethod
;
5126
var getP1 = p1.
GetMethod
;
5253
Assert.Same(p1.
GetMethod
, derived.FindImplementationForInterfaceMember(p1.
GetMethod
));
5254
Assert.Same(p2.
GetMethod
, derived.FindImplementationForInterfaceMember(p2.
GetMethod
));
5255
Assert.Same(p3.
GetMethod
, derived.FindImplementationForInterfaceMember(p3.
GetMethod
));
5256
Assert.Same(p4.
GetMethod
, derived.FindImplementationForInterfaceMember(p4.
GetMethod
));
5259
Assert.Same(p7.
GetMethod
, derived.FindImplementationForInterfaceMember(p7.
GetMethod
));
5260
Assert.Same(p8.
GetMethod
, derived.FindImplementationForInterfaceMember(p8.
GetMethod
));
5440
Assert.Equal("System.Int32 Test.I1.get_Item(System.SByte i)", derived.FindImplementationForInterfaceMember(p1.
GetMethod
).ToTestDisplayString());
5441
Assert.Equal("System.Int32 Test.I1.get_Item(System.Byte i)", derived.FindImplementationForInterfaceMember(p2.
GetMethod
).ToTestDisplayString());
5442
Assert.Equal("System.Int32 Test.I1.get_Item(System.Int16 i)", derived.FindImplementationForInterfaceMember(p3.
GetMethod
).ToTestDisplayString());
5443
Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt16 i)", derived.FindImplementationForInterfaceMember(p4.
GetMethod
).ToTestDisplayString());
5446
Assert.Equal("System.Int32 Test.I1.get_Item(System.Int64 i)", derived.FindImplementationForInterfaceMember(p7.
GetMethod
).ToTestDisplayString());
5447
Assert.Equal("System.Int32 Test.I1.get_Item(System.UInt64 i)", derived.FindImplementationForInterfaceMember(p8.
GetMethod
).ToTestDisplayString());
5453
Assert.Equal("System.Int32 Test.I1.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.
GetMethod
).ToTestDisplayString());
5454
Assert.Equal("System.Int32 Test.I1.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.
GetMethod
).ToTestDisplayString());
5455
Assert.Equal("System.Int32 Test.I1.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.
GetMethod
).ToTestDisplayString());
5456
Assert.Equal("System.Int32 Test.I1.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.
GetMethod
).ToTestDisplayString());
5459
Assert.Equal("System.Int32 Test.I1.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.
GetMethod
).ToTestDisplayString());
5460
Assert.Equal("System.Int32 Test.I1.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.
GetMethod
).ToTestDisplayString());
5581
Assert.Equal("System.Int32 Test.this[System.SByte i].get", derived.FindImplementationForInterfaceMember(p1.
GetMethod
).ToTestDisplayString());
5582
Assert.Equal("System.Int32 Test.this[System.Byte i].get", derived.FindImplementationForInterfaceMember(p2.
GetMethod
).ToTestDisplayString());
5583
Assert.Equal("System.Int32 Test.this[System.Int16 i].get", derived.FindImplementationForInterfaceMember(p3.
GetMethod
).ToTestDisplayString());
5584
Assert.Equal("System.Int32 Test.this[System.UInt16 i].get", derived.FindImplementationForInterfaceMember(p4.
GetMethod
).ToTestDisplayString());
5587
Assert.Equal("System.Int32 Test.this[System.Int64 i].get", derived.FindImplementationForInterfaceMember(p7.
GetMethod
).ToTestDisplayString());
5588
Assert.Equal("System.Int32 Test.this[System.UInt64 i].get", derived.FindImplementationForInterfaceMember(p8.
GetMethod
).ToTestDisplayString());
5723
Assert.True(p1.
GetMethod
.IsVirtual);
5724
Assert.True(p3.
GetMethod
.IsVirtual);
5726
Assert.True(p7.
GetMethod
.IsVirtual);
5729
Assert.True(p1.
GetMethod
.IsMetadataVirtual());
5730
Assert.True(p3.
GetMethod
.IsMetadataVirtual());
5732
Assert.True(p7.
GetMethod
.IsMetadataVirtual());
5735
Assert.False(p1.
GetMethod
.IsAbstract);
5736
Assert.False(p3.
GetMethod
.IsAbstract);
5738
Assert.False(p7.
GetMethod
.IsAbstract);
5741
Assert.Same(p1.
GetMethod
, derived.FindImplementationForInterfaceMember(p1.
GetMethod
));
5742
Assert.Same(p3.
GetMethod
, derived.FindImplementationForInterfaceMember(p3.
GetMethod
));
5744
Assert.Same(p7.
GetMethod
, derived.FindImplementationForInterfaceMember(p7.
GetMethod
));
5865
Assert.Null(test2.FindImplementationForInterfaceMember(p1.
GetMethod
));
5866
Assert.Null(test2.FindImplementationForInterfaceMember(p3.
GetMethod
));
5868
Assert.Null(test2.FindImplementationForInterfaceMember(p7.
GetMethod
));
12942
ValidateP01Accessor(p01.
GetMethod
);
12958
var p02get = p02.
GetMethod
;
13000
var p04get = p04.
GetMethod
;
13042
var p06get = p06.
GetMethod
;
13084
var p08get = p08.
GetMethod
;
13126
var p10get = p10.
GetMethod
;
13156
ValidateP11Accessor(p11.
GetMethod
);
13181
ValidateP12Accessor(p12.
GetMethod
);
13206
ValidateP13Accessor(p13.
GetMethod
, Accessibility.Public);
13231
ValidateP14Accessor(p14.
GetMethod
, Accessibility.ProtectedOrInternal);
13256
ValidateP15Accessor(p15.
GetMethod
, Accessibility.Public);
13281
ValidateP16Accessor(p16.
GetMethod
, Accessibility.Private);
13297
var p17get = p17.
GetMethod
;
13318
var p18get = p18.
GetMethod
;
13348
ValidateP13Accessor(p19.
GetMethod
, Accessibility.Public);
13732
var p1get = p1.
GetMethod
;
13835
ValidateAccessor(p1.
GetMethod
, test1P1.
GetMethod
);
13908
ValidateAccessor(p1.
GetMethod
);
14115
Assert.Null(p1.
GetMethod
);
14122
ValidateAccessor(p1.
GetMethod
);
14125
ValidateAccessor(p1.
GetMethod
);
14211
var p1get = p1.
GetMethod
;
14257
var p3get = p3.
GetMethod
;
14464
Assert.Null(p1.
GetMethod
);
14471
ValidateAccessor(p1.
GetMethod
);
14474
ValidateAccessor(p1.
GetMethod
);
14553
var p1get = p1.
GetMethod
;
14576
var p2get = p2.
GetMethod
;
14609
ValidateP3Accessor(p3.
GetMethod
);
14626
var p4get = p4.
GetMethod
;
14756
var p1get = p1.
GetMethod
;
14816
var p1get = p1.
GetMethod
;
14823
Assert.Same(test1P1.
GetMethod
, test1.FindImplementationForInterfaceMember(p1get));
14857
Assert.Null(test2.FindImplementationForInterfaceMember(p1.
GetMethod
));
14997
var p1get = p1.
GetMethod
;
15002
Assert.Same(test1P1.
GetMethod
, test1.FindImplementationForInterfaceMember(p1get));
15006
Assert.True(test1P1.
GetMethod
.IsMetadataVirtual());
15830
Assert.Null(test1.FindImplementationForInterfaceMember(p1.
GetMethod
));
16016
Assert.Null(p1.
GetMethod
);
16023
ValidateAccessor(p1.
GetMethod
);
16026
ValidateAccessor(p1.
GetMethod
);
16131
var p1get = p1.
GetMethod
;
16157
var p2get = p2.
GetMethod
;
16423
Assert.Null(p2.
GetMethod
);
16431
ValidateAccessor(p2.
GetMethod
, test1P2.
GetMethod
);
16434
ValidateAccessor(p2.
GetMethod
, test1P2.
GetMethod
);
16597
var p1get = p1.
GetMethod
;
16619
Assert.Same(test2P1.
GetMethod
, test2.FindImplementationForInterfaceMember(p1get));
16663
ValidateP3Accessor(p3.
GetMethod
);
16682
var p4get = p4.
GetMethod
;
16840
var p1get = p1.
GetMethod
;
16862
Assert.Same(test2P1.
GetMethod
, test2.FindImplementationForInterfaceMember(p1get));
16866
var p2get = p2.
GetMethod
;
16888
Assert.Same(test2P2.
GetMethod
, test2.FindImplementationForInterfaceMember(p2get));
16903
ValidateP3Accessor(p3.
GetMethod
, p3.IsIndexer ? test2P3.
GetMethod
: null);
16932
ValidateP4Accessor(p4.
GetMethod
);
16950
var p5get = p5.
GetMethod
;
17101
ValidateP1Accessor(p1.
GetMethod
, test2P1.
GetMethod
);
17120
var p2get = p2.
GetMethod
;
17142
Assert.Same(test2P2.
GetMethod
, test2.FindImplementationForInterfaceMember(p2get));
17157
ValidateP3Accessor(p3.
GetMethod
, p3.IsIndexer ? test2P3.
GetMethod
: null);
17187
ValidateP4Accessor(p4.
GetMethod
, p4.IsIndexer ? test2P4.
GetMethod
: null);
17205
var p5get = p5.
GetMethod
;
17290
var p1get = p1.
GetMethod
;
17334
var p1get = p1.
GetMethod
;
17583
ValidateAccessor(p1.
GetMethod
, accessibility);
17588
ValidateAccessor(p1.
GetMethod
, Accessibility.Public);
18171
if (implementingProperty.
GetMethod
?.ExplicitInterfaceImplementations.Length > 0 ||
18182
ValidateMethod23(p1, p1.
GetMethod
, isAbstract, getAccess, test1, implementingProperty?.
GetMethod
);
19671
var p1get = p1.
GetMethod
;
19715
var p1get = p1.
GetMethod
;
20347
validateAccessor(p1.
GetMethod
, tuple.getAccess);
21419
ValidateP01Accessor(p01.
GetMethod
);
21435
var p02get = p02.
GetMethod
;
21477
var p04get = p04.
GetMethod
;
21519
var p06get = p06.
GetMethod
;
21561
var p08get = p08.
GetMethod
;
21603
var p10get = p10.
GetMethod
;
21633
ValidateP11Accessor(p11.
GetMethod
);
21658
ValidateP12Accessor(p12.
GetMethod
);
21683
ValidateP13Accessor(p13.
GetMethod
, Accessibility.Public);
21708
ValidateP14Accessor(p14.
GetMethod
, Accessibility.ProtectedOrInternal);
21733
ValidateP15Accessor(p15.
GetMethod
, Accessibility.Public);
21758
ValidateP16Accessor(p16.
GetMethod
, Accessibility.Private);
21774
var p17get = p17.
GetMethod
;
21795
var p18get = p18.
GetMethod
;
21825
ValidateP13Accessor(p19.
GetMethod
, Accessibility.Public);
23209
Assert.Null(test1.FindImplementationForInterfaceMember(p1.
GetMethod
));
36899
ValidateAccessor(expected?.
GetMethod
, interfaceProperty.
GetMethod
);
36918
ValidateAccessor(expected?.
GetMethod
, interfaceProperty.
GetMethod
);
36944
ValidateAccessor(m1.
GetMethod
, isAbstract, isStatic);
37836
ValidateAccessor(m1.
GetMethod
);
52346
if (i1p1.
GetMethod
is object)
52348
Assert.Same(i1p1.
GetMethod
, i2p1.
GetMethod
.ExplicitInterfaceImplementations.Single());
52349
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52350
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52352
else if (i2p1.
GetMethod
is object)
52354
Assert.Empty(i2p1.
GetMethod
.ExplicitInterfaceImplementations);
52380
if (reabstracting.
GetMethod
is object)
52382
ValidateReabstraction(reabstracting.
GetMethod
, isStatic);
52545
if (i1p1.
GetMethod
is object)
52547
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52548
Assert.Same(test12p1.
GetMethod
, test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52700
if (i1p1.
GetMethod
is object)
52702
Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52703
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52872
if (i1p1.
GetMethod
is object)
52874
Assert.Same(i3p1.
GetMethod
, i3.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
52875
Assert.Same(i3p1.
GetMethod
, test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53035
if (i1p1.
GetMethod
is object)
53037
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53200
if (i1p1.
GetMethod
is object)
53202
Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53203
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53341
if (i1p1.
GetMethod
is object)
53343
Assert.Same(i4p1.
GetMethod
, i4.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53344
Assert.Same(i4p1.
GetMethod
, test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53428
if (i1p1.
GetMethod
is object)
53430
if (i2p1.
GetMethod
is object)
53432
Assert.Same(i1p1.
GetMethod
, i2p1.
GetMethod
.ExplicitInterfaceImplementations.Single());
53435
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53436
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53438
else if (i2p1.
GetMethod
is object)
53440
Assert.Empty(i2p1.
GetMethod
.ExplicitInterfaceImplementations);
53562
var i2p1Get = i2p1.
GetMethod
;
53601
if (i1p1.
GetMethod
is object)
53603
Assert.Same(i1p1.
GetMethod
, i2p1.
GetMethod
.ExplicitInterfaceImplementations.Single());
53604
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53605
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53607
else if (i2p1.
GetMethod
is object)
53609
Assert.Empty(i2p1.
GetMethod
.ExplicitInterfaceImplementations);
53701
var c2p1Get = c2p1.
GetMethod
;
53720
if (i1p1.
GetMethod
is object)
53722
Assert.Same(i1p1.
GetMethod
, c2p1.
GetMethod
.ExplicitInterfaceImplementations.Single());
53723
Assert.Same(c2p1Get, c2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
53725
else if (c2p1.
GetMethod
is object)
53727
Assert.Empty(c2p1.
GetMethod
.ExplicitInterfaceImplementations);
54036
if (i1p1.
GetMethod
is object)
54038
Assert.Same(i1p1.
GetMethod
, i2p1.
GetMethod
.ExplicitInterfaceImplementations.Single());
54039
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
54040
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
GetMethod
));
54042
else if (i2p1.
GetMethod
is object)
54044
Assert.Empty(i2p1.
GetMethod
.ExplicitInterfaceImplementations);
54204
Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
).ToTestDisplayString());
54277
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
54377
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
54448
Assert.Equal("System.Char I2.I1.get_F1()", test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
).ToTestDisplayString());
54516
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
54610
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
54704
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
54792
Assert.Null(test2.FindImplementationForInterfaceMember(i1F1.
GetMethod
));
56860
if (i2p1.
GetMethod
is object)
56862
Assert.Empty(i2p1.
GetMethod
.ExplicitInterfaceImplementations);
62973
Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
62974
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
62984
Assert.Same(c1i1P1get, test1.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
62985
Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
62995
Assert.Same(c1i1P1get, test4.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
62996
Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63006
Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
63007
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63167
Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63171
Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63175
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63179
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63333
Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63337
Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63341
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63345
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63507
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63511
Assert.Same(c1i1P2get, test1.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63515
Assert.Same(c1i1P2get, test4.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63519
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63908
Assert.Same(i2i1P1get, test2.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
63909
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
63919
Assert.Same(i2i1P1get, test3.FindImplementationForInterfaceMember(i1P1.
GetMethod
));
63920
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64038
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64042
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64154
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64158
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64274
Assert.Same(i2i1P2get, test2.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64278
Assert.Same(i2i1P2get, test3.FindImplementationForInterfaceMember(i1P2.
GetMethod
));
64352
Assert.Null(c2.FindImplementationForInterfaceMember(p1.
GetMethod
));
64432
Assert.Null(c2.FindImplementationForInterfaceMember(p1.
GetMethod
));
64507
Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.
GetMethod
));
64586
Assert.Same(c1.GetMember("get_P1"), c2.FindImplementationForInterfaceMember(p1.
GetMethod
));
67147
Assert.Empty(m.
GetMethod
.ExplicitInterfaceImplementations);
67216
Assert.Same(m2.
GetMethod
, m1.
GetMethod
.ExplicitInterfaceImplementations.Single());
67824
Assert.True(p.
GetMethod
.IsMetadataVirtual());
67825
Assert.True(p.
GetMethod
.IsMetadataFinal);
67888
Assert.True(p.
GetMethod
.IsMetadataVirtual());
67889
Assert.True(p.
GetMethod
.IsMetadataFinal);
Symbols\IndexedPropertyTests.cs (12)
991
Assert.True(property.
GetMethod
.CanBeReferencedByName);
992
Assert.True(property.
GetMethod
.CanBeReferencedByNameIgnoringIllegalCharacters);
999
Assert.True(property.
GetMethod
.CanBeReferencedByName);
1000
Assert.True(property.
GetMethod
.CanBeReferencedByNameIgnoringIllegalCharacters);
1007
Assert.False(property.
GetMethod
.CanBeReferencedByName);
1008
Assert.False(property.
GetMethod
.CanBeReferencedByNameIgnoringIllegalCharacters);
1093
Assert.True(property.
GetMethod
.CanBeReferencedByName);
1094
Assert.True(property.
GetMethod
.CanBeReferencedByNameIgnoringIllegalCharacters);
1099
Assert.False(property.
GetMethod
.CanBeReferencedByName);
1100
Assert.True(property.
GetMethod
.CanBeReferencedByNameIgnoringIllegalCharacters);
2521
Assert.Null(sourceType1.FindImplementationForInterfaceMember(interfaceProperty.
GetMethod
));
2525
Assert.NotNull(sourceType2.FindImplementationForInterfaceMember(interfaceProperty.
GetMethod
));
Symbols\IndexerTests.cs (20)
182
var getter = property.
GetMethod
;
206
Assert.Equal(property.
GetMethod
!= null, hasGet);
285
Assert.Null(indexerC.
GetMethod
.OverriddenMethod);
341
Assert.Equal(classIndexer.
GetMethod
, synthesizedExplicitImplementations[0].ImplementingMethod);
342
Assert.Equal(classIndexer.
GetMethod
, synthesizedExplicitImplementations[1].ImplementingMethod);
344
var interface1Getter = interface1Indexer.
GetMethod
;
345
var interface2Getter = interface2Indexer.
GetMethod
;
423
Assert.Equal(classIndexer.
GetMethod
, synthesizedExplicitImplementations[0].ImplementingMethod);
424
Assert.Equal(classIndexer.
GetMethod
, synthesizedExplicitImplementations[1].ImplementingMethod);
426
var interface1Getter = interface1Indexer.
GetMethod
;
427
var interface2Getter = interface2Indexer.
GetMethod
;
489
Assert.Equal(classIndexer.
GetMethod
, synthesizedExplicitImplementation.ImplementingMethod);
491
Assert.Equal(interfaceIndexers[0].
GetMethod
, synthesizedExplicitImplementation.ExplicitInterfaceImplementations.Single());
492
Assert.Equal(interfaceIndexers[1].
GetMethod
, synthesizedExplicitImplementation.ExplicitInterfaceImplementations.Single());
1437
Assert.Equal("get_A", indexer.
GetMethod
.Name);
1438
Assert.Equal("get_A", indexer.
GetMethod
.MetadataName);
1461
Assert.Equal("get_@indexer", indexer.
GetMethod
.MetadataName);
2404
Assert.NotNull(indexer.
GetMethod
);
2405
Assert.False(indexer.
GetMethod
.Parameters.IsEmpty);
2407
foreach (var p in indexer.
GetMethod
.Parameters)
Symbols\InterfaceImplementationTests.cs (7)
914
var interfacePropertyGetter = interfaceProperty.
GetMethod
;
922
var baseClassPropertyGetter = baseClassProperty.
GetMethod
;
983
var interfacePropertyGetter = interfaceProperty.
GetMethod
;
991
var baseClassPropertyGetter = baseClassProperty.
GetMethod
;
1771
var interfaceGetter = interfaceProperty.
GetMethod
;
2290
var interfaceGetter = interfaceProperty.
GetMethod
;
2293
var baseGetter = baseProperty.
GetMethod
;
Symbols\Metadata\MetadataMemberTests.cs (2)
492
Assert.Null(propWithoutGetter.
GetMethod
);
498
Assert.NotNull(propWithoutSetter.
GetMethod
);
Symbols\Metadata\PE\DynamicTransformsTests.cs (2)
312
Assert.Equal(s_dynamicType, prop1.
GetMethod
.ReturnType);
317
Assert.Equal(complicatedInnerInnerArrayOfArray, prop2.
GetMethod
.ReturnType);
Symbols\Metadata\PE\LoadingAttributes.cs (2)
388
var attr = property1.
GetMethod
.GetReturnTypeAttributes().First();
1121
Assert.Equal(3, prop.
GetMethod
.GetAttributes().Length);
Symbols\Metadata\PE\LoadingIndexers.cs (2)
1032
CheckAccessorShape(property.
GetMethod
, true, property, expectIndexer, suppressAssociatedPropertyCheck);
1036
Assert.Null(property.
GetMethod
);
Symbols\Metadata\PE\LoadingProperties.cs (14)
238
Assert.NotNull(interfaceProperty1.
GetMethod
);
241
Assert.NotNull(interfaceProperty2.
GetMethod
);
244
Assert.NotNull(interfaceProperty3.
GetMethod
);
247
Assert.NotNull(interfaceProperty4.
GetMethod
);
250
Assert.Null(interfaceProperty5.
GetMethod
);
259
Assert.NotNull(classProperty1.
GetMethod
);
262
Assert.NotNull(classProperty2.
GetMethod
);
270
var implementedByGetter1 = ImmutableArray.Create<MethodSymbol>(interfaceProperty1.
GetMethod
, interfaceProperty2.
GetMethod
, interfaceProperty4.
GetMethod
);
271
Assert.True(implementedByGetter1.SetEquals(classProperty1.
GetMethod
.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance));
276
var implementedByGetter2 = ImmutableArray.Create<MethodSymbol>(interfaceProperty3.
GetMethod
);
277
Assert.True(implementedByGetter2.SetEquals(classProperty2.
GetMethod
.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance));
362
var getter = property.
GetMethod
;
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
222
MethodSymbol testMethod = testProperty.
GetMethod
;
Symbols\Retargeting\RetargetingTests.cs (2)
1257
CheckSymbols(a.
GetMethod
, b.
GetMethod
, true);
Symbols\Source\ClsComplianceTests.cs (1)
2114
var accessor = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<PropertySymbol>("P").
GetMethod
;
Symbols\Source\CustomModifierCopyTests.cs (21)
305
property.
GetMethod
,
1649
Assert.Equal(int8Type, baseProperty.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1650
Assert.Equal(int8Type, derivedProperty.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1655
Assert.Equal(int8Type, baseIndexer.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1656
Assert.Equal(int8Type, derivedIndexer.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1658
Assert.Equal(int16Type, baseIndexer.
GetMethod
.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier());
1659
Assert.Equal(int16Type, derivedIndexer.
GetMethod
.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier());
1759
Assert.Equal(0, baseProperty.
GetMethod
.CustomModifierCount());
1761
Assert.Equal(0, baseIndexer.
GetMethod
.CustomModifierCount());
1763
Assert.Equal(0, derivedProperty.
GetMethod
.CustomModifierCount());
1765
Assert.Equal(0, derivedIndexer.
GetMethod
.CustomModifierCount());
1863
Assert.Equal(int8Type, interfaceProperty.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1864
Assert.Equal(int8Type, implementationProperty.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1869
Assert.Equal(int8Type, interfaceIndexer.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1870
Assert.Equal(int8Type, implementationIndexer.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier());
1872
Assert.Equal(int16Type, interfaceIndexer.
GetMethod
.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier());
1873
Assert.Equal(int16Type, implementationIndexer.
GetMethod
.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier());
1958
Assert.Equal(0, interfaceProperty.
GetMethod
.CustomModifierCount());
1960
Assert.Equal(0, interfaceIndexer.
GetMethod
.CustomModifierCount());
1962
Assert.Equal(0, implementationProperty.
GetMethod
.CustomModifierCount());
1964
Assert.Equal(0, implementationIndexer.
GetMethod
.CustomModifierCount());
Symbols\Source\MethodTests.cs (3)
1963
var methodA = classA.GetMember<PropertySymbol>("P").
GetMethod
;
1965
var methodC = classC.GetMember<PropertySymbol>("P").
GetMethod
;
2008
var methodB = classB.GetMember<PropertySymbol>("P").
GetMethod
;
Symbols\Source\PropertyTests.cs (14)
185
Assert.NotNull(p.
GetMethod
);
189
Assert.NotNull(q.
GetMethod
);
193
Assert.NotNull(r.
GetMethod
);
246
Assert.NotNull(p.
GetMethod
);
250
Assert.NotNull(q.
GetMethod
);
254
Assert.NotNull(r.
GetMethod
);
363
Assert.False(p.
GetMethod
.IsImplicitlyDeclared);
367
Assert.False(p.
GetMethod
.IsImplicitlyDeclared);
371
Assert.False(q.
GetMethod
.IsImplicitlyDeclared);
590
VerifyMethodAndAccessorSame(type, property, property.
GetMethod
);
2489
var interfacePropertyGetter = interfaceProperty.
GetMethod
;
2496
var classPropertyGetter = classProperty.
GetMethod
;
2528
var interfacePropertyGetter = interfaceProperty.
GetMethod
;
2535
var classPropertyGetter = classProperty.
GetMethod
;
Symbols\StaticAbstractMembersInInterfacesTests.cs (108)
1835
var m01 = i1.GetMember<PropertySymbol>("M01").
GetMethod
;
1847
var m02 = i1.GetMember<PropertySymbol>("M02").
GetMethod
;
1859
var m03 = i1.GetMember<PropertySymbol>("M03").
GetMethod
;
1871
var m04 = i1.GetMember<PropertySymbol>("M04").
GetMethod
;
1883
var m05 = i1.GetMember<PropertySymbol>("M05").
GetMethod
;
1895
var m06 = i1.GetMember<PropertySymbol>("M06").
GetMethod
;
1907
var m07 = i1.GetMember<PropertySymbol>("M07").
GetMethod
;
1919
var m08 = i1.GetMember<PropertySymbol>("M08").
GetMethod
;
1931
var m09 = i1.GetMember<PropertySymbol>("M09").
GetMethod
;
1943
var m10 = i1.GetMember<PropertySymbol>("M10").
GetMethod
;
22653
Assert.Same(i6m.
GetMethod
, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).
GetMethod
);
22744
Assert.Same(i6m.
GetMethod
, ((PropertySymbol)i6.FindImplementationForInterfaceMember(m)).
GetMethod
);
22957
var m01Get = m01.
GetMethod
;
22972
var cM01Get = cM01.
GetMethod
;
23052
var m01Get = m01.
GetMethod
;
23068
var cM01Get = cM01.
GetMethod
;
23143
var m01Get = m01.
GetMethod
;
23158
var cM01Get = cM01.
GetMethod
;
23255
Assert.Same(cM01.
GetMethod
, c3.FindImplementationForInterfaceMember(m01.
GetMethod
));
23259
Assert.Same(m01.
GetMethod
, cM01.
GetMethod
.ExplicitInterfaceImplementations.Single());
23411
Assert.Same(c1M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23414
Assert.Same(m01.
GetMethod
, c1M01.
GetMethod
.ExplicitInterfaceImplementations.Single());
23419
Assert.Same(c1M01.
GetMethod
, c2.FindImplementationForInterfaceMember(m01.
GetMethod
));
23424
Assert.Same(c1M01.
GetMethod
, c3.FindImplementationForInterfaceMember(m01.
GetMethod
));
23429
Assert.Same(c1M01.
GetMethod
, c4.FindImplementationForInterfaceMember(m01.
GetMethod
));
23436
Assert.Same(c2M01.
GetMethod
, c5.FindImplementationForInterfaceMember(m01.
GetMethod
));
23511
Assert.Same(m01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23512
Assert.Same(m01.
GetMethod
, i1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23554
Assert.Same(c1m01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23555
Assert.Same(m01.
GetMethod
, i1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23591
Assert.Same(c1m01.
GetMethod
, c.FindImplementationForInterfaceMember(m01.
GetMethod
));
23645
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23646
Assert.Null(i1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23677
var m01Get = m01.
GetMethod
;
23691
var cM01Get = cM01.
GetMethod
;
23736
var m01Get = m01.
GetMethod
;
23749
var cM01Get = cM01.
GetMethod
;
23815
Assert.Same(c1M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23818
Assert.Same(m01.
GetMethod
, c1M01.
GetMethod
.ExplicitInterfaceImplementations.Single());
23840
var m01Get = m01.
GetMethod
;
23853
var cM01Get = cM01.
GetMethod
;
23908
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23941
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23997
Assert.Same(m01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
23998
Assert.Same(m01.
GetMethod
, i1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24029
var m01Get = m01.
GetMethod
;
24056
Assert.Null(cM01.
GetMethod
);
24114
var cM01Get = cM01.
GetMethod
;
24126
var m01Get = m01.
GetMethod
;
24168
Assert.Same(c1M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24170
Assert.Same(m01.
GetMethod
, c1M01.
GetMethod
.ExplicitInterfaceImplementations.Single());
24218
var m01Get = m01.
GetMethod
;
24260
Assert.Same(c1M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24293
Assert.Same(c1M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24296
Assert.Same(m01.
GetMethod
, c1M01.
GetMethod
.ExplicitInterfaceImplementations.Single());
24376
Assert.Same(i2M01.
GetMethod
, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24377
Assert.Same(i2M01.
GetMethod
, i2.FindImplementationForInterfaceMember(m01.
GetMethod
));
24382
Assert.Same(m01.
GetMethod
, i2M01.
GetMethod
.ExplicitInterfaceImplementations.Single());
24422
var c2M01Get = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.
GetMethod
);
24445
Assert.Same(m01.
GetMethod
, c2M01Get.ExplicitInterfaceImplementations.Single());
24457
var c1M01Get = c1M01.
GetMethod
;
24499
Assert.Same(c2M01.
GetMethod
, c2M01Get);
24611
var c1M01Get = c1M01.
GetMethod
;
24628
Assert.Same(c1M01Get, c1.FindImplementationForInterfaceMember(m01.
GetMethod
));
24642
Assert.Same(m01.
GetMethod
, c1M01Get.ExplicitInterfaceImplementations.Single());
24665
var c2M01Get = c2M01.
GetMethod
;
24683
Assert.Same(m01.
GetMethod
, c2M01Get.ExplicitInterfaceImplementations.Single());
24684
Assert.Same(c2M01Get, c2.FindImplementationForInterfaceMember(m01.
GetMethod
));
24705
var c3M01Get = c3M01.
GetMethod
;
24723
Assert.Same(m01.
GetMethod
, c3M01Get.ExplicitInterfaceImplementations.Single());
24724
Assert.Same(c3M01Get, c3.FindImplementationForInterfaceMember(m01.
GetMethod
));
24822
var c1M01Get = c1M01.
GetMethod
;
24844
var c2M01Get = c3.FindImplementationForInterfaceMember(m01.
GetMethod
);
24856
Assert.Same(c1M01.
GetMethod
, c3.FindImplementationForInterfaceMember(m01.
GetMethod
));
24865
Assert.Same(c2M02.
GetMethod
, c3.FindImplementationForInterfaceMember(m02.
GetMethod
));
24944
var c2M01Get = c2M01.
GetMethod
;
24975
var c3M01Get = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.
GetMethod
);
24977
Assert.Same(m01.
GetMethod
, c3M01Get.ExplicitInterfaceImplementations.Single());
24986
Assert.Same(c2M01Get, c3.FindImplementationForInterfaceMember(m01.
GetMethod
));
Symbols\SymbolErrorTests.cs (2)
10156
Assert.False(classAProp1.
GetMethod
.IsVirtual); //NB: non-virtual since private
10209
Assert.True(classAProp1.
GetMethod
.IsVirtual);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
LifetimeAnnotationAttributesVisitor.cs (1)
69
Visit(property.
GetMethod
);
TestAttributesVisitor.cs (1)
71
Visit(property.
GetMethod
);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdMetadataTests.cs (1)
137
Assert.Equal("System.Runtime.WindowsRuntime.dll", ((PENamedTypeSymbol)((((PropertySymbol)(blk)).
GetMethod
).ReturnType)).ContainingModule.ToString());