Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
46 references to SetMethod
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
440accessibility = PEPropertyOrEventHelpers.GetDeclaredAccessibilityFromAccessors(this.GetMethod, this.SetMethod); 569((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)
3274Assert.True(property0.SetMethod.HasUseSiteError); 3275Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3276Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3365Assert.True(property0.SetMethod.HasUseSiteError); 3366Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3367Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3481Assert.True(property0.SetMethod.HasUseSiteError); 3482Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3483Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3574Assert.True(property0.SetMethod.HasUseSiteError); 3575Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3576Assert.True(property0.SetMethod.Parameters[1].HasUnsupportedMetadata); 3812Assert.True(property0.SetMethod.HasUseSiteError); 3813Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3814Assert.False(property0.SetMethod.IsInitOnly); 3899Assert.True(property0.SetMethod.HasUseSiteError); 3900Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3901Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3902Assert.False(property0.SetMethod.IsInitOnly); 3988Assert.True(property0.SetMethod.HasUseSiteError); 3989Assert.True(property0.SetMethod.HasUnsupportedMetadata); 3990Assert.True(property0.SetMethod.Parameters[0].HasUnsupportedMetadata); 3991Assert.False(property0.SetMethod.IsInitOnly); 4056Assert.False(property.SetMethod.IsInitOnly); 4058Assert.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)
725VerifyAccessor(goodStatic.SetMethod, goodStatic, MethodKind.PropertySet); 727VerifyAccessor(badStatic.SetMethod, goodStatic, MethodKind.PropertySet); 729VerifyAccessor(mismatchedStatic.SetMethod, null, MethodKind.Ordinary); 742VerifyAccessor(goodInstance.SetMethod, goodInstance, MethodKind.PropertySet); 744VerifyAccessor(badInstance.SetMethod, goodInstance, MethodKind.PropertySet); 746VerifyAccessor(mismatchedInstance.SetMethod, null, MethodKind.Ordinary); 751VerifyAccessor(staticAndInstance.SetMethod, goodInstance, MethodKind.PropertySet); 757VerifyAccessor(getUsedAsSet.SetMethod, goodInstance, MethodKind.PropertyGet); 769var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.GetMethod : associatedProperty.SetMethod; 2563VerifyAccessorAccessibility(property.SetMethod, setAccessibility);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
154if (property.SetMethod != null) 158AppendMethod(result, (PEMethodSymbol)property.SetMethod, memberIndent);