|
1 | 1 | [global::Android.Runtime.Register ("mono/java/code/IMyInterfaceImplementor")]
|
2 | 2 | internal sealed partial class IMyInterfaceImplementor : global::Java.Lang.Object, IMyInterface {
|
3 | 3 |
|
4 |
| - object sender; |
| 4 | + object sender; |
5 | 5 |
|
6 |
| - public IMyInterfaceImplementor (object sender) |
7 |
| - : base ( |
8 |
| - global::Android.Runtime.JNIEnv.StartCreateInstance ("mono/java/code/IMyInterfaceImplementor", "()V"), |
9 |
| - JniHandleOwnership.TransferLocalRef) |
10 |
| - { |
11 |
| - global::Android.Runtime.JNIEnv.FinishCreateInstance (this.PeerReference, "()V"); |
12 |
| - this.sender = sender; |
13 |
| - } |
| 6 | + public IMyInterfaceImplementor (object sender) |
| 7 | + : base ( |
| 8 | + global::Android.Runtime.JNIEnv.StartCreateInstance ("mono/java/code/IMyInterfaceImplementor", "()V"), |
| 9 | + JniHandleOwnership.TransferLocalRef) |
| 10 | + { |
| 11 | + global::Android.Runtime.JNIEnv.FinishCreateInstance (this.PeerReference, "()V"); |
| 12 | + this.sender = sender; |
| 13 | + } |
14 | 14 |
|
15 | 15 | #pragma warning disable 0649
|
16 |
| - public MyIGetCountForKeyHandler GetCountForKeyHandler; |
| 16 | + public MyIGetCountForKeyHandler? GetCountForKeyHandler; |
17 | 17 | #pragma warning restore 0649
|
18 | 18 |
|
19 |
| - public int GetCountForKey (string key) |
20 |
| - { |
21 |
| - var __h = GetCountForKeyHandler; |
22 |
| - return __h != null ? __h (key) : default (int); |
23 |
| - } |
| 19 | + public int GetCountForKey (string? key) |
| 20 | + { |
| 21 | + var __h = GetCountForKeyHandler; |
| 22 | + return __h != null ? __h (key) : default (int); |
| 23 | + } |
24 | 24 | #pragma warning disable 0649
|
25 |
| - public MyIKeyHandler KeyHandler; |
| 25 | + public MyIKeyHandler? KeyHandler; |
26 | 26 | #pragma warning restore 0649
|
27 | 27 |
|
28 |
| - public string Key () |
29 |
| - { |
30 |
| - var __h = KeyHandler; |
31 |
| - return __h != null ? __h () : default (string); |
32 |
| - } |
| 28 | + public string? Key () |
| 29 | + { |
| 30 | + var __h = KeyHandler; |
| 31 | + return __h != null ? __h () : default (string?); |
| 32 | + } |
33 | 33 | #pragma warning disable 0649
|
34 |
| - public EventHandler StaticMethodHandler; |
| 34 | + public EventHandler? StaticMethodHandler; |
35 | 35 | #pragma warning restore 0649
|
36 | 36 |
|
37 |
| - public void StaticMethod () |
38 |
| - { |
39 |
| - var __h = StaticMethodHandler; |
40 |
| - if (__h != null) |
41 |
| - __h (sender, new EventArgs ()); |
42 |
| - } |
| 37 | + public void StaticMethod () |
| 38 | + { |
| 39 | + var __h = StaticMethodHandler; |
| 40 | + if (__h != null) |
| 41 | + __h (sender, new EventArgs ()); |
| 42 | + } |
43 | 43 | #pragma warning disable 0649
|
44 |
| - public EventHandler AbstractMethodHandler; |
| 44 | + public EventHandler? AbstractMethodHandler; |
45 | 45 | #pragma warning restore 0649
|
46 | 46 |
|
47 |
| - public void AbstractMethod () |
48 |
| - { |
49 |
| - var __h = AbstractMethodHandler; |
50 |
| - if (__h != null) |
51 |
| - __h (sender, new EventArgs ()); |
52 |
| - } |
53 |
| - |
54 |
| - internal static bool __IsEmpty (IMyInterfaceImplementor value) |
55 |
| - { |
56 |
| - return value.GetCountForKeyHandler == null && value.KeyHandler == null && value.StaticMethodHandler == null && value.AbstractMethodHandler == null; |
57 |
| - } |
| 47 | + public void AbstractMethod () |
| 48 | + { |
| 49 | + var __h = AbstractMethodHandler; |
| 50 | + if (__h != null) |
| 51 | + __h (sender, new EventArgs ()); |
| 52 | + } |
| 53 | + |
| 54 | + internal static bool __IsEmpty (IMyInterfaceImplementor value) |
| 55 | + { |
| 56 | + return value.GetCountForKeyHandler == null && value.KeyHandler == null && value.StaticMethodHandler == null && value.AbstractMethodHandler == null; |
| 57 | + } |
58 | 58 | }
|
| 59 | + |
0 commit comments