You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/generator-Tests/Unit-Tests/CodeGeneratorExpectedResults/JavaInterop1/ObsoleteInterfaceAlternativeClass.txt
throw new InvalidCastException (string.Format ("Unable to convert instance of type '{0}' to type '{1}'.", JNIEnv.GetClassNameFromInstance (handle), "com.xamarin.android.Parent"));
protected MyClass (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
11
+
{
12
+
}
13
13
14
14
// Metadata.xml XPath constructor reference: path="/api/package[@name='java.code']/class[@name='MyClass']/constructor[@name='MyClass' and count(parameter)=0]"
15
15
[Register (".ctor", "()V", "")]
16
-
unsafe MyClass ()
17
-
: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
16
+
unsafe MyClass () : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
18
17
{
19
18
const string __id = "()V";
20
19
@@ -31,8 +30,7 @@ public partial class MyClass {
31
30
32
31
// Metadata.xml XPath constructor reference: path="/api/package[@name='java.code']/class[@name='MyClass']/constructor[@name='MyClass' and count(parameter)=1 and parameter[1][@type='java.lang.String']]"
33
32
[Register (".ctor", "(Ljava/lang/String;)V", "")]
34
-
unsafe MyClass (string p0)
35
-
: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
33
+
unsafe MyClass (string p0) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
36
34
{
37
35
const string __id = "(Ljava/lang/String;)V";
38
36
@@ -52,6 +50,7 @@ public partial class MyClass {
52
50
}
53
51
54
52
static Delegate cb_get_Count;
53
+
55
54
#pragma warning disable 0169
56
55
static Delegate Getget_CountHandler ()
57
56
{
@@ -68,6 +67,7 @@ public partial class MyClass {
68
67
#pragma warning restore 0169
69
68
70
69
static Delegate cb_set_Count_I;
70
+
71
71
#pragma warning disable 0169
72
72
static Delegate Getset_Count_IHandler ()
73
73
{
@@ -108,6 +108,7 @@ public partial class MyClass {
108
108
}
109
109
110
110
static Delegate cb_get_Key;
111
+
111
112
#pragma warning disable 0169
112
113
static Delegate Getget_KeyHandler ()
113
114
{
@@ -124,6 +125,7 @@ public partial class MyClass {
// Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='set_AbstractCount' and count(parameter)=1 and parameter[1][@type='int']]"
0 commit comments