Clone() 공개 메소드

public Clone ( ) : object
리턴 object
예제 #1
0
		public void TestClone ()
		{
			HatchBrush hbr = new HatchBrush(HatchStyle.Cross, fgColor, bgColor);

			HatchBrush clone = (HatchBrush) hbr.Clone ();

			Assert.AreEqual (hbr.HatchStyle, clone.HatchStyle, "Clone#1");
			Assert.AreEqual (hbr.ForegroundColor, clone.ForegroundColor, "Clone#2");
			Assert.AreEqual (hbr.BackgroundColor, clone.BackgroundColor, "Clone#3");
		}