Ejemplo n.º 1
0
        public static object ReadFirstObject(Stream stream)
        {
            object first = null;

            using (var coder = new BinaryReadingCoder(stream))
                coder.Code(ref first);
            return(first);
        }
Ejemplo n.º 2
0
        public static object ReadFirstObject(string fileName)
        {
            object first = null;

            using (var coder = new BinaryReadingCoder(fileName))
                coder.Code(ref first);
            return(first);
        }