Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
41 references to GetMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
534
accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.
GetMethod
, this.SetMethod);
662
((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)
3277
Assert.Null(property0.
GetMethod
);
3369
Assert.Null(property0.
GetMethod
);
3488
Assert.Null(property0.
GetMethod
);
3584
Assert.Null(property0.
GetMethod
);
3822
Assert.False(property0.
GetMethod
.HasUseSiteError);
3906
Assert.True(property0.
GetMethod
.HasUseSiteError);
3907
Assert.True(property0.
GetMethod
.HasUnsupportedMetadata);
3908
Assert.True(property0.
GetMethod
.ReturnsByRef);
3995
Assert.True(property0.
GetMethod
.HasUseSiteError);
3996
Assert.True(property0.
GetMethod
.HasUnsupportedMetadata);
3997
Assert.True(property0.
GetMethod
.ReturnsByRef);
4063
Assert.False(property.
GetMethod
.IsInitOnly);
4065
Assert.True(property.
GetMethod
.HasUseSiteError);
4066
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)
725
VerifyAccessor(goodStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
727
VerifyAccessor(badStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
729
VerifyAccessor(mismatchedStatic.
GetMethod
, goodStatic, MethodKind.PropertyGet);
742
VerifyAccessor(goodInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
744
VerifyAccessor(badInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
746
VerifyAccessor(mismatchedInstance.
GetMethod
, goodInstance, MethodKind.PropertyGet);
751
VerifyAccessor(staticAndInstance.
GetMethod
, goodStatic, MethodKind.PropertyGet);
757
VerifyAccessor(getUsedAsSet.
GetMethod
, goodInstance, MethodKind.PropertyGet);
770
var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.
GetMethod
: associatedProperty.SetMethod;
2563
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);