Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
41 references to GetMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
440accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.GetMethod, this.SetMethod); 568((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)
3272Assert.Null(property0.GetMethod); 3364Assert.Null(property0.GetMethod); 3480Assert.Null(property0.GetMethod); 3573Assert.Null(property0.GetMethod); 3811Assert.False(property0.GetMethod.HasUseSiteError); 3895Assert.True(property0.GetMethod.HasUseSiteError); 3896Assert.True(property0.GetMethod.HasUnsupportedMetadata); 3897Assert.True(property0.GetMethod.ReturnsByRef); 3984Assert.True(property0.GetMethod.HasUseSiteError); 3985Assert.True(property0.GetMethod.HasUnsupportedMetadata); 3986Assert.True(property0.GetMethod.ReturnsByRef); 4052Assert.False(property.GetMethod.IsInitOnly); 4054Assert.True(property.GetMethod.HasUseSiteError); 4055Assert.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)
724VerifyAccessor(goodStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 726VerifyAccessor(badStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 728VerifyAccessor(mismatchedStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 741VerifyAccessor(goodInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 743VerifyAccessor(badInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 745VerifyAccessor(mismatchedInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 750VerifyAccessor(staticAndInstance.GetMethod, goodStatic, MethodKind.PropertyGet); 756VerifyAccessor(getUsedAsSet.GetMethod, goodInstance, MethodKind.PropertyGet); 769var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.GetMethod : associatedProperty.SetMethod; 2562VerifyAccessorAccessibility(property.GetMethod, getAccessibility);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
147if (property.GetMethod != null) 151AppendMethod(result, (PEMethodSymbol)property.GetMethod, memberIndent);