예제 #1
0
		public void Ctor2_Deny_Unrestricted ()
		{
			PersistChildrenAttribute pca = new PersistChildrenAttribute (false, true);
			Assert.IsFalse (pca.Persist, "Persist");
			Assert.IsTrue (pca.UsesCustomPersistence, "UsesCustomPersistence");
			Assert.IsTrue (pca.Equals (pca), "Equals");
			Assert.IsFalse (pca.IsDefaultAttribute (), "IsDefaultAttribute");
		}
        public override bool Equals(object obj)
        {
            PersistChildrenAttribute pobj = (obj as PersistChildrenAttribute);

            if (pobj == null)
            {
                return(false);
            }

            return(pobj.persist == persist && pobj.usesCustomPersistence == usesCustomPersistence);
        }