Beispiel #1
0
        private static void SerializeAndDeserializeEdgeWithContext(out Edge e, out Edge e2)
        {
            DeserializationContext ctx = new DeserializationContext(new CoreEntityFactory());

            e = EntityHelper.CreateEdgeConnectingNodes();
            ctx.AddNodes(e.EndA, e.EndB);

            e2 = SerializerHelper.SerializeAndDeserialize(e, ctx);
        }