code fails

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Why does this code fail?

int a = 5;

int b = 5;



object oa = a;

object ob = b;



Debug.Assert(oa == ob, "oa is not equal ob");
 
Why does this code fail?

Because you didn't try hard enough to get your homework done alone :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top