Copy() public method

public Copy ( ) : object
return object
Ejemplo n.º 1
0
		public void Copy ()
		{
			GacInstalled gac = new GacInstalled ();
			GacInstalled copy = (GacInstalled)gac.Copy ();
			Assert.AreEqual (gac, copy, "Equals");
			Assert.IsFalse (Object.ReferenceEquals (gac, copy), "ReferenceEquals");
		}
Ejemplo n.º 2
0
 public static void GacInstalledCallMethods()
 {
     GacInstalled gi = new GacInstalled();
     object obj = gi.Copy();
     IPermission ip = gi.CreateIdentityPermission(new Evidence());
     bool check = gi.Equals(new object());
     int hash = gi.GetHashCode();
     string str = gi.ToString();
 }