Equals() public method

public Equals ( object o ) : bool
o object
return bool
Example #1
0
		public void Equals ()
		{
			GacInstalled gac = new GacInstalled ();
			Assert.IsFalse (gac.Equals (null), "Equals(null)");
			GacInstalled g2 = new GacInstalled ();
			Assert.IsTrue (gac.Equals (g2), "Equals(g2)");
			Assert.IsTrue (g2.Equals (gac), "Equals(gac)");
		}
Example #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();
 }