I have this piece of code
if ( x.str_NombreVariable == "User::v_sRutaArchivo")
x.str_ValorVariable += str_Archivo;
else if ( x.str_NombreVariable == "User::v_IdBitacoraCarga")
x.str_ValorVariable = _Bcarga.IdBitacoraCarga.ToString();
as you can see I do some comparissions: x.str_NombreVariable == "User::v_sRutaArchivo" or x.str_NombreVariable == "User::v_IdBitacoraCarga"
problem is that I have values into x.str_NombreVariable who doesn´t have "User::" and it don´t match with comparission. So I try to do something like:
"User::"+x.str_NombreVariable == "User::v_sRutaArchivo"
Problem is some x.str_NombreVariable come with "User::" as default so I get:
User::User::NombreVariable
and it is wrong I only need User::NombreVariable
So in other words: How can I check if x.str_NombreVariable doesnt contains "User::" add it and if it have don´t do anything? it is possible? Regards