Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
41 references to GetMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
534accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.GetMethod, this.SetMethod); 662((object)this.GetMethod != null && this.GetMethod.Name == defaultMemberName) ||
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
154PEPropertySymbol { GetMethod: PEMethodSymbol { ExplicitlyOverriddenClassMethod: { AssociatedSymbol: PropertySymbol overriddenProperty } } } => overriddenProperty,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\NoPiaEmbedTypes.cs (4)
1584Assert.Same(p1.GetMethod, get_P1); 1593Assert.Same(p2.GetMethod, get_P2); 1601Assert.Same(p3.GetMethod, get_P3); 1614Assert.Null(p4.GetMethod);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InitOnlyMemberTests.cs (14)
3277Assert.Null(property0.GetMethod); 3369Assert.Null(property0.GetMethod); 3488Assert.Null(property0.GetMethod); 3584Assert.Null(property0.GetMethod); 3822Assert.False(property0.GetMethod.HasUseSiteError); 3906Assert.True(property0.GetMethod.HasUseSiteError); 3907Assert.True(property0.GetMethod.HasUnsupportedMetadata); 3908Assert.True(property0.GetMethod.ReturnsByRef); 3995Assert.True(property0.GetMethod.HasUseSiteError); 3996Assert.True(property0.GetMethod.HasUnsupportedMetadata); 3997Assert.True(property0.GetMethod.ReturnsByRef); 4063Assert.False(property.GetMethod.IsInitOnly); 4065Assert.True(property.GetMethod.HasUseSiteError); 4066Assert.True(property.GetMethod.HasUnsupportedMetadata);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\Metadata\PE\LoadingIndexers.cs (7)
712Assert.NotEqual(parameterCountIndexer.ParameterCount, parameterCountIndexer.GetMethod.ParameterCount); 717Assert.NotEqual(parameterTypesIndexer.Parameters.Last().Type, parameterTypesIndexer.GetMethod.Parameters.Last().Type); 722Assert.NotEqual(returnTypeIndexer.Type, returnTypeIndexer.GetMethod.ReturnType); 727Assert.NotEqual(parameterModoptIndexer.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length, parameterModoptIndexer.GetMethod.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length); 732Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Length); 792Assert.NotEqual(property1ParamName, property1.GetMethod.Parameters.Single().Name); 798Assert.Equal(property2ParamName, property2.GetMethod.Parameters.Single().Name);
Symbols\Source\PropertyTests.cs (10)
725VerifyAccessor(goodStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 727VerifyAccessor(badStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 729VerifyAccessor(mismatchedStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 742VerifyAccessor(goodInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 744VerifyAccessor(badInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 746VerifyAccessor(mismatchedInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 751VerifyAccessor(staticAndInstance.GetMethod, goodStatic, MethodKind.PropertyGet); 757VerifyAccessor(getUsedAsSet.GetMethod, goodInstance, MethodKind.PropertyGet); 770var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.GetMethod : associatedProperty.SetMethod; 2563VerifyAccessorAccessibility(property.GetMethod, getAccessibility);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
147if (property.GetMethod != null) 151AppendMethod(result, (PEMethodSymbol)property.GetMethod, memberIndent);