Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
46 references to SetMethod
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
534accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.GetMethod, this.SetMethod); 663((object)this.SetMethod != null && this.SetMethod.Name == defaultMemberName);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\NoPiaEmbedTypes.cs (4)
1585Assert.Same(p1.SetMethod, set_P1); 1594Assert.Same(p2.SetMethod, set_P2); 1602Assert.Null(p3.SetMethod); 1615Assert.Same(p4.SetMethod, set_P4);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (25)
Semantics\InitOnlyMemberTests.cs (25)
3279Assert.True(property0.SetMethod.HasUseSiteError); 3280Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3281Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3370Assert.True(property0.SetMethod.HasUseSiteError); 3371Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3372Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3489Assert.True(property0.SetMethod.HasUseSiteError); 3490Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3491Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3585Assert.True(property0.SetMethod.HasUseSiteError); 3586Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3587Assert.True(property0.SetMethod.Parameters[1].HasUnsupportedMetadata); 3823Assert.True(property0.SetMethod.HasUseSiteError); 3824Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3825Assert.False(property0.SetMethod.IsInitOnly); 3910Assert.True(property0.SetMethod.HasUseSiteError); 3911Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3912Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3913Assert.False(property0.SetMethod.IsInitOnly); 3999Assert.True(property0.SetMethod.HasUseSiteError); 4000Assert.True(property0.SetMethod.HasUnsupportedMetadata); 4001Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 4002Assert.False(property0.SetMethod.IsInitOnly); 4067Assert.False(property.SetMethod.IsInitOnly); 4069Assert.False(property.SetMethod.HasUseSiteError);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\Metadata\PE\LoadingIndexers.cs (2)
793Assert.Equal(property1ParamName, property1.SetMethod.Parameters.First().Name); 803Assert.Equal(property3ParamName, property3.SetMethod.Parameters.First().Name);
Symbols\Source\PropertyTests.cs (10)
726VerifyAccessor(goodStatic.SetMethod, goodStatic, MethodKind.PropertySet); 728VerifyAccessor(badStatic.SetMethod, goodStatic, MethodKind.PropertySet); 730VerifyAccessor(mismatchedStatic.SetMethod, null, MethodKind.Ordinary); 743VerifyAccessor(goodInstance.SetMethod, goodInstance, MethodKind.PropertySet); 745VerifyAccessor(badInstance.SetMethod, goodInstance, MethodKind.PropertySet); 747VerifyAccessor(mismatchedInstance.SetMethod, null, MethodKind.Ordinary); 752VerifyAccessor(staticAndInstance.SetMethod, goodInstance, MethodKind.PropertySet); 758VerifyAccessor(getUsedAsSet.SetMethod, goodInstance, MethodKind.PropertyGet); 770var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.GetMethod : associatedProperty.SetMethod; 2564VerifyAccessorAccessibility(property.SetMethod, setAccessibility);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
154if (property.SetMethod != null) 158AppendMethod(result, (PEMethodSymbol)property.SetMethod, memberIndent);