Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

110
Vistas
Nombres de los miembros de la base de datos en tiempo real de Google Firebase

¿Por qué los documentos de Firebase incluyen esto como una opción en https://firebase.google.com/docs/database/unity/save-data ?

Aquí está mi código y error.

 public class User2 { public string email; public string myAge; public string mySex; public string myEth; public string myReligion; public string myJob; public string myKids; public string myFKids; public string myCovid; public string myHeight; public string myWeight; public string myEye; public string theirMinAge; public string theirMaxAge; public string theirSex; public string theirEth; public string theirReligion; public string theirJob; public string theirKids; public string theirFKids; public string theirCovid; public string theirHeight; public string theirWeight; public string theirEye; public User2 () { } public string User2 (string email1, string myAge1, string mySex1, string myEth1, string myReligion1, string myJob1, string myKids1, string myFKids1, string myCovid1, string myHeight1, string myWeight1, string myEye1, string theirMinAge1, string theirMaxAge1, string theirSex1, string theirEth1, string theirReligion1, string theirJob1, string theirKids1, string theirFKids1, string theirCovid1, string theirHeight1, string theirWeight1, string theirEye1) { this.email = email1; this.myAge = myAge1; this.mySex = mySex1; this.myEth = myEth1; this.myReligion = myReligion1; this.myJob = myJob1; this.myKids = myKids1; this.myFKids = myFKids1; this.myCovid = myCovid1; this.myHeight = myHeight1; this.myWeight = myWeight1; this.myEye = myEye1; this.theirMinAge = theirMinAge1; this.theirMaxAge = theirMaxAge1; this.theirSex = theirSex1; this.theirEth = theirEth1; this.theirReligion = theirReligion1; this.theirJob = theirJob1; this.theirKids = theirKids1; this.theirFKids = theirFKids1; this.theirCovid = theirCovid1; this.theirHeight = theirHeight1; this.theirWeight = theirWeight1; this.theirEye = theirEye1; } }

y mi error

Assets\Scripts\Buttons.cs(46,19): error CS0542: 'User2': los nombres de los miembros no pueden ser iguales a su tipo adjunto

Cuando cambio el nombre de User2 dentro de la clase, aparece otro error.

por favor declare el tipo de retorno del método.

¿Hay una solución fácil para esto?

Encontré mi error... Tenía la cadena de palabras clave en uno de los métodos. resolviendo

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Encontré mi error. Tenía la cadena de palabras clave en uno de los métodos.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda