Tech
Forums
Jobs
Books
Events
Live
Learn
More
Training
Interviews
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Pass value from one object to another using objectclass
Seshadri M
Sep 19 2017 1:55 AM
153
Reply
I have below try sample code using objectclass.
class
general
{
int
id = 1;
string
name =
"Employee"
;
}
class
general2
{
}
class
Program
{
static
void
Main(
string
[] args)
{
general g=
new
general();
general2 h =
new
general2();
//g.Employee= h; //errror
g.Equals(h);
Console.WriteLine(g.ToString());
Console.ReadLine();
}
}
OUTPUT
//namescape
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
textbox restricting spaces using c# code
myiframe are not load data on first time click ,but again