Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.423 kb
using System;
public class TestObj {
static public int sbah = 5;
public int bah = 1;
public int boh;
public TestObj () {
boh = 2;
}
public int amethod () {
return boh;
}
public static int Main () {
TestObj obj = new TestObj ();
TestObj clone;
if (sbah + obj.bah + obj.amethod () != 8)
return 1;
clone = (TestObj)obj.MemberwiseClone ();
if (clone.boh != 2)
return 1;
return 0;
}
}
Jump to Line
Something went wrong with that request. Please try again.