Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
41 references to GetMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
440
accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.
GetMethod
, this.SetMethod);
568
((object)this.
GetMethod
!= null && this.
GetMethod
.Name == defaultMemberName) ||
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
154
PEPropertySymbol {
GetMethod
: PEMethodSymbol { ExplicitlyOverriddenClassMethod: { AssociatedSymbol: PropertySymbol overriddenProperty } } } => overriddenProperty,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\NoPiaEmbedTypes.cs (4)
1584
Assert.Same(p1.
GetMethod
, get_P1);
1593
Assert.Same(p2.
GetMethod
, get_P2);
1601
Assert.Same(p3.
GetMethod
, get_P3);
1614
Assert.Null(p4.
GetMethod
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InitOnlyMemberTests.cs (14)
3272
Assert.Null(property0.
GetMethod
);
3364
Assert.Null(property0.
GetMethod
);
3480
Assert.Null(property0.
GetMethod
);
3573
Assert.Null(property0.
GetMethod
);
3811
Assert.False(property0.
GetMethod
.HasUseSiteError);
3895
Assert.True(property0.
GetMethod
.HasUseSiteError);
3896
Assert.True(property0.
GetMethod
.HasUnsupportedMetadata);
3897
Assert.True(property0.
GetMethod
.ReturnsByRef);
3984
Assert.True(property0.
GetMethod
.HasUseSiteError);
3985
Assert.True(property0.
GetMethod
.HasUnsupportedMetadata);
3986
Assert.True(property0.
GetMethod
.ReturnsByRef);
4052
Assert.False(property.
GetMethod
.IsInitOnly);
4054
Assert.True(property.
GetMethod
.HasUseSiteError);
4055
Assert.True(property.
GetMethod
.HasUnsupportedMetadata);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\Metadata\PE\LoadingIndexers.cs (7)
712
Assert.NotEqual(parameterCountIndexer.ParameterCount, parameterCountIndexer.
GetMethod
.ParameterCount);
717
Assert.NotEqual(parameterTypesIndexer.Parameters.Last().Type, parameterTypesIndexer.
GetMethod
.Parameters.Last().Type);
722
Assert.NotEqual(returnTypeIndexer.Type, returnTypeIndexer.
GetMethod
.ReturnType);
727
Assert.NotEqual(parameterModoptIndexer.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length, parameterModoptIndexer.
GetMethod
.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length);
732
Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.
GetMethod
.ReturnTypeWithAnnotations.CustomModifiers.Length);
792
Assert.NotEqual(property1ParamName, property1.
GetMethod
.Parameters.Single().Name);
798
Assert.Equal(property2ParamName, property2.
GetMethod
.Parameters.Single().Name);
Symbols\Source\PropertyTests.cs (10)
724
VerifyAccessor(goodStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
726
VerifyAccessor(badStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
728
VerifyAccessor(mismatchedStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
741
VerifyAccessor(goodInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
743
VerifyAccessor(badInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
745
VerifyAccessor(mismatchedInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
750
VerifyAccessor(staticAndInstance.
GetMethod
, goodStatic, MethodKind.PropertyGet);
756
VerifyAccessor(getUsedAsSet.
GetMethod
, goodInstance, MethodKind.PropertyGet);
769
var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.
GetMethod
: associatedProperty.SetMethod;
2562
VerifyAccessorAccessibility(property.
GetMethod
, getAccessibility);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
147
if (property.
GetMethod
!= null)
151
AppendMethod(result, (PEMethodSymbol)property.
GetMethod
, memberIndent);