Beispiel #1
0
        public override bool Equals(object obj)
        {
            EmbeddedObject eo = (EmbeddedObject)obj;

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

            if (BasicObjectValue == null && eo.BasicObjectValue == null)
            {
                return(true);
            }

            return(BasicObjectValue != null && BasicObjectValue.Equals(eo.BasicObjectValue));
        }
Beispiel #2
0
 public AdvancedObject(PrimitiveObject po, CollectionObject co, EmbeddedObject eo)
 {
     PrimitiveObjectValue  = po;
     CollectionObjectValue = co;
     EmbeddedObjectValue   = eo;
 }
Beispiel #3
0
 public AdvancedObject(PrimitiveObject po, CollectionObject co, EmbeddedObject eo)
 {
     PrimitiveObjectValue = po;
     CollectionObjectValue = co;
     EmbeddedObjectValue = eo;
 }
Beispiel #4
0
        public static void SerializeDeserialize_EmbeddedObject_Success()
        {
            EmbeddedObject eo = CreateEmbeddedObject();

            SerializeDeserializeObject_Equal_Success(eo, XmlConvertOptions.None);
        }