136 references to GetProperty
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (76)
CodeGen\CodeGenFunctionPointersTests.cs (3)
789validateProperty((PropertySymbol)c.GetProperty((string)"Prop1"), IsFunctionPointerTypeSymbol(CallingConvention.Default, 793validateProperty(c.GetProperty("Prop2"), IsFunctionPointerTypeSymbol(CallingConvention.Standard, 985var prop = c.GetProperty("Prop");
CodeGen\CodeGenReadonlyStructTests.cs (30)
1347var p1 = type.GetProperty("P1"); 1348var p2 = type.GetProperty("P2"); 1349var p3 = type.GetProperty("P3"); 1350var p4 = type.GetProperty("P4"); 1351var p5 = type.GetProperty("P5"); 1421var p1 = type.GetProperty("P1"); 1422var p2 = type.GetProperty("P2"); 1423var p3 = type.GetProperty("P3"); 1424var p4 = type.GetProperty("P4"); 1485var p1 = type.GetProperty("P1"); 1486var p2 = type.GetProperty("P2"); 1487var p3 = type.GetProperty("P3"); 1488var p4 = type.GetProperty("P4"); 1489var p5 = type.GetProperty("P5"); 1574verifyReadOnly(s1.GetProperty("P1").GetMethod, true, RefKind.RefReadOnly); 1575verifyReadOnly(s1.GetProperty("P1").SetMethod, false, RefKind.Ref); 1577verifyReadOnly(s1.GetProperty("P2").GetMethod, true, RefKind.RefReadOnly); 1579verifyReadOnly(s1.GetProperty("P3").GetMethod, true, RefKind.RefReadOnly); 1580verifyReadOnly(s1.GetProperty("P3").SetMethod, false, RefKind.Ref); 1582verifyReadOnly(s1.GetProperty("P4").GetMethod, false, RefKind.Ref); 1583verifyReadOnly(s1.GetProperty("P4").SetMethod, true, RefKind.RefReadOnly); 1585verifyReadOnly(s1.GetProperty("P5").GetMethod, false, null); 1586verifyReadOnly(s1.GetProperty("P5").SetMethod, false, null); 1595verifyReadOnly(s2.GetProperty("P1").GetMethod, true, RefKind.RefReadOnly); 1596verifyReadOnly(s2.GetProperty("P2").GetMethod, true, RefKind.RefReadOnly); 1597verifyReadOnly(s2.GetProperty("P3").SetMethod, true, RefKind.RefReadOnly); 1599verifyReadOnly(s2.GetProperty("P4").GetMethod, false, null); 1600verifyReadOnly(s2.GetProperty("P4").SetMethod, false, null); 2582Assert.Equal(isReadOnly, type.GetProperty("P").GetMethod.IsDeclaredReadOnly); 2583Assert.Equal(isReadOnly, type.GetProperty("P").GetMethod.IsEffectivelyReadOnly);
Emit\EmitMetadataTests.cs (3)
1273var p = classA.GetProperty("P"); 1275var q = classA.GetProperty("Q"); 1279p = classC.BaseType().GetProperty("P");
Emit\InAttributeModifierTests.cs (40)
1778var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1798var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1819var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1840var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1860var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 1880var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 1901var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1921var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1943var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 2049var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 2970var property = type.GetProperty("P"); 2993var property = type.GetProperty("P"); 3015var property = type.GetProperty("P"); 3039var property = type.GetProperty("P"); 3061var property = type.GetProperty("P"); 3086var implicitproperty = type.GetProperty("P"); 3107var property = type.GetProperty("P"); 3131var property = type.GetProperty("P"); 3153var property = type.GetProperty("P"); 3177var property = type.GetProperty("Parent.P"); 3199var parameter = type.GetProperty("this[]").Parameters.Single(); 3225var parameter = type.GetProperty("this[]").Parameters.Single(); 3247var parameter = type.GetProperty("this[]").Parameters.Single(); 3273var parameter = type.GetProperty("this[]").Parameters.Single(); 3295var parameter = type.GetProperty("this[]").Parameters.Single(); 3322var implicitParameter = type.GetProperty("this[]").Parameters.Single(); 3350var parameter = type.GetProperty("this[]").Parameters.Single(); 3376var parameter = type.GetProperty("this[]").Parameters.Single(); 3398var parameter = type.GetProperty("this[]").Parameters.Single(); 3424var parameter = type.GetProperty("Parent.Item").Parameters.Single(); 3446var indexer = type.GetProperty("this[]"); 3470var indexer = type.GetProperty("this[]"); 3492var indexer = type.GetProperty("this[]"); 3516var indexer = type.GetProperty("this[]"); 3538var indexer = type.GetProperty("this[]"); 3562var indexer = type.GetProperty("this[]"); 3584var indexer = type.GetProperty("this[]"); 3608var indexer = type.GetProperty("this[]"); 3630var indexer = type.GetProperty("this[]"); 3654var indexer = type.GetProperty("Parent.Item");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (36)
Attributes\AttributeTests_Nullable.cs (2)
2534var property = module.ContainingAssembly.GetTypeByMetadataName("C").GetTypeMember("<F>d__0").GetProperty("System.Collections.Generic.IEnumerator<System.Object>.Current"); 2560var property = module.ContainingAssembly.GetTypeByMetadataName("C").GetTypeMember("<F>d__0").GetProperty("System.Collections.Generic.IEnumerator<System.Object[]>.Current");
Attributes\AttributeTests_RefReadOnly.cs (34)
305AssertProperty(type.GetProperty("P1")); 306AssertProperty(type.GetProperty("P2")); 334AssertProperty(type.GetProperty("P1")); 335AssertProperty(type.GetProperty("P2")); 371AssertProperty(type.GetProperty("P1")); 372AssertProperty(type.GetProperty("P2")); 401var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 425var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").GetParameters().Single(); 445var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 473var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1599var property = type.GetProperty("Property"); 1602var indexer = type.GetProperty("this[]"); 1641var property = type.GetProperty("Property"); 1644var indexer = type.GetProperty("this[]"); 1685var property = type.GetProperty("Property"); 1688var indexer = type.GetProperty("this[]"); 1730var property = type.GetProperty("Property"); 1733var indexer = type.GetProperty("this[]"); 1777var property = type.GetProperty("Property"); 1780var indexer = type.GetProperty("this[]"); 1821var property = type.GetProperty("Property"); 1824var indexer = type.GetProperty("this[]"); 1870var property = type.GetProperty("Property"); 1873var indexer = type.GetProperty("this[]"); 1914var property = type.GetProperty("Property"); 1917var indexer = type.GetProperty("this[]"); 1979var property = type.GetProperty("System.Runtime.CompilerServices.ITest.Property"); 1982var indexer = type.GetProperty("System.Runtime.CompilerServices.ITest.Item"); 2028var property = type.GetProperty("System.Runtime.CompilerServices.ITest.Property"); 2031var indexer = type.GetProperty("System.Runtime.CompilerServices.ITest.Item"); 2068var property = type.GetProperty("ITest.Property"); 2071var indexer = type.GetProperty("ITest.Item"); 2110var property = type.GetProperty("ITest.Property"); 2113var indexer = type.GetProperty("ITest.Item");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ReadOnlyStructsTests.cs (4)
1314check(s1.GetProperty("P1"), true, false, false); 1315check(s1.GetProperty("P2"), true, false, true); 1316check(s1.GetProperty("P3"), false, true, false); 1317check(s1.GetProperty("P4"), false, true, true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
384var csharpGetter = @class.GetProperty("I.P").GetMethod;
Symbols\IndexerTests.cs (1)
549var classIndexer = @class.GetProperty("I1.this[]");
Symbols\InterfaceImplementationTests.cs (3)
186var classExplicitImplementationBase = @class.GetProperty("BaseInterface.this[]"); 187var classExplicitImplementation = @class.GetProperty("Interface.this[]"); 188var classImplicitImplementation = @class.GetProperty("this[]");
Symbols\RequiredMembersTests.cs (1)
6960var property = c.GetProperty("Property").GetPublicSymbol();
Symbols\Retargeting\RetargetingTests.cs (4)
290var p = b.GetProperty("I<A>.P"); 295var i_a_p_v2 = i_a_v2.GetProperty("P"); 315implemented_p = c.GetProperty("I<CT>.P").ExplicitInterfaceImplementations[0]; 319var i_ct_p_v2 = i_ct_v2.GetProperty("P");
Symbols\Source\CustomModifierCopyTests.cs (5)
1136var classProperty1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("I.P"); 1159var classProperty2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("I.P"); 1173var classProperty3 = comp3.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P"); 1300var classProperty1 = comp1.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P"); 1327var classProperty2 = comp2.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetProperty("P");
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
397prop = (SourcePropertySymbol)c.GetProperty("I.Q"); 401prop = (SourcePropertySymbol)c.GetProperty("J.Q");
Symbols\Source\RecordTests.cs (2)
151var x = (SourcePropertySymbolBase)c.GetProperty("x"); 185var y = (SourcePropertySymbolBase)c.GetProperty("y");
Symbols\SymbolErrorTests.cs (1)
4925var indexer = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("A").GetProperty("IA." + WellKnownMemberNames.Indexer);