@@ -3,12 +3,30 @@ partial class TwoPartClass
3
3
partial void PartialMethodWithBody1 ( ) ;
4
4
partial void PartialMethodWithoutBody1 ( ) ;
5
5
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 ; }
6
10
}
7
11
8
12
partial class TwoPartClass
9
13
{
10
14
partial void PartialMethodWithBody1 ( ) { }
11
15
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
+ }
12
30
}
13
31
14
32
partial class OnePartPartialClass
@@ -20,4 +38,10 @@ public void Method4() { }
20
38
class NonPartialClass
21
39
{
22
40
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