|
1 | 1 | using System;
|
2 | 2 | using System.Collections;
|
3 | 3 | using System.Collections.Generic;
|
| 4 | +using System.Diagnostics.CodeAnalysis; |
4 | 5 | using System.IO;
|
5 | 6 | using System.Linq;
|
6 | 7 | using System.Reflection;
|
@@ -406,6 +407,15 @@ public CodeExpression FromNative (CodeExpression arg)
|
406 | 407 | }
|
407 | 408 |
|
408 | 409 | // Ignore ToNative() overload that takes generic instancing mapping. The reflected method should have nothing to do with it.
|
| 410 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaArray", "Mono.Android")] |
| 411 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaCollection", "Mono.Android")] |
| 412 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaCollection`1", "Mono.Android")] |
| 413 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaDictionary", "Mono.Android")] |
| 414 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaDictionary`2", "Mono.Android")] |
| 415 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaList", "Mono.Android")] |
| 416 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaList`1", "Mono.Android")] |
| 417 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaSet", "Mono.Android")] |
| 418 | + [DynamicDependency ("ToLocalJniHandle", "Android.Runtime.JavaSet`1", "Mono.Android")] |
409 | 419 | public CodeExpression ToNative (CodeExpression arg)
|
410 | 420 | {
|
411 | 421 | switch (GetKind (type)) {
|
|
0 commit comments