N
nicol
Hi
This is a program that have 3 error that I could not solve it
Error 1 The name 'i' does not exist in the current context
((( same error in 3 line )))
using System;
namespace ConsoleApplication109
{
class Program
{
static void Main(string[] args)
{
information name=new information();
name.x="reza"; // ********error
i++; //*** error*******
name.x="ali"; // ********error
}
class information
{
public int i = 1;
string []name1=new string[100];
public string x
{
get
{
return name1;
}
set
{
name1 = value;
}
}
}
}
}
Thanks . . .
This is a program that have 3 error that I could not solve it
Error 1 The name 'i' does not exist in the current context
((( same error in 3 line )))
using System;
namespace ConsoleApplication109
{
class Program
{
static void Main(string[] args)
{
information name=new information();
name.x="reza"; // ********error
i++; //*** error*******
name.x="ali"; // ********error
}
class information
{
public int i = 1;
string []name1=new string[100];
public string x
{
get
{
return name1;
}
set
{
name1 = value;
}
}
}
}
}
Thanks . . .