Пример #1
0
 public void Save(TestFrameEntity frame, string path)
 {
     using (var stream = File.Open(path, FileMode.OpenOrCreate))
     {
         this.serializer.Serialize(stream, frame);
     }
 }
Пример #2
0
 public void Save(TestFrameEntity frame, string path)
 {
     using (var stream = File.Open(path, FileMode.OpenOrCreate))
     {
         this.serializer.Serialize(stream, frame);
     }
 }
 public void Can_Save_Frame()
 {
     var testFrame = new TestFrameEntity(new DepthFrameEntity(new IntSize(640, 480), new ushort[] { 1, 2, 3 }));
     this.repository.Save(testFrame, @"HandTracking\Persistence\test.xfrm");
 }