question

CristianFea-0726 avatar image
0 Votes"
CristianFea-0726 asked Sean-Liming edited

iot variables o metodos publicos

Hola, necesito pasar los valores de variables desde una app en segundo plano a una que esta en primer plano, el problema es que la app en segPlano no me deja poner el modificador en publico para poder instanciar desde la otra app, intente con eventos tambien lo mismo ------public static string bbbb = "hola";---- el error que tira visual studio es sin numero y dice -- Type 'NombreDeLaClase' contains externally visible field 'NombreDeLaApp.bbbb'. Estoy desarrollando en c# para version de win iot 16299, Agradezco cualquier solucion.

dotnet-csharpwindows-iot-10core
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Translation: Hello, I need to pass the values of variables from an app in the background to one that is in the foreground, the problem is that the app in segPlano does not let me put the modifier in public to be able to instantiate it from the other app, try with events too the same ------public static string bbbb = "hello";---- the error thrown by visual studio is without a number and says -- Type 'NameOfTheClass' contains externally visible field 'NameOfTheApp.bbbb'. I am developing in c# for win iot version 16299, I appreciate any solution.

0 Votes 0 ·

0 Answers