Buenos dias,
Espero que hayan pasado una feliz navidad!!
tengo el siguiente caso:
En Visual Basic 6.0...
Public Property Let Data(arInData() As Byte)
mstr = DeArregloaStr(arInData())
End Property
y debo llamar la propiedad desde otra aplicacion en c
sharp
int dmnsion = lsCdna.ToString().Length;
byte[] arData = new byte[dmnsion]; /// Redimensiona
arData = null; /// Se asegura que el arreglo esté vacio
arData = ((byte[])cClas.convStraArreglo(ref lsCdna));
cClas.set_Data(ref arData);
pero tengo los siguientes errores...
The best overloaded method match
for 'Conver._cls.set_Data(ref System.Array)' has some
invalid arguments
Argument '1': cannot convert from 'ref byte[]' to 'ref
System.Array'
Traté de hacer cast...
cClas.set_Data(ref (System.Array)arData);
y el mensaje es...
A ref or out argument must be an lvalue
que Hago?
Gracias por su Tiempo
Leer las respuestas