@@ -3,12 +3,30 @@ partial class TwoPartClass
33 partial void PartialMethodWithBody1 ( ) ;
44 partial void PartialMethodWithoutBody1 ( ) ;
55 public void Method2 ( ) { }
6+ // Declaring declaration.
7+ public partial object PartialProperty1 { get ; set ; }
8+ // Declaring declaration.
9+ public partial object this [ int index ] { get ; set ; }
610}
711
812partial class TwoPartClass
913{
1014 partial void PartialMethodWithBody1 ( ) { }
1115 public void Method3 ( ) { }
16+ private object _backingField ;
17+ // Implementation declaration.
18+ public partial object PartialProperty1
19+ {
20+ get { return _backingField ; }
21+ set { _backingField = value ; }
22+ }
23+ private object [ ] _backingArray ;
24+ // Implmentation declaration.
25+ public partial object this [ int index ]
26+ {
27+ get { return _backingArray [ index ] ; }
28+ set { _backingArray [ index ] = value ; }
29+ }
1230}
1331
1432partial class OnePartPartialClass
@@ -20,4 +38,10 @@ public void Method4() { }
2038class NonPartialClass
2139{
2240 public void Method5 ( ) { }
23- }
41+ public object Property { get ; set ; }
42+ public object this [ int index ]
43+ {
44+ get { return null ; }
45+ set { }
46+ }
47+ }
0 commit comments