Beispiel #1
0
        public static object ReadFirstObject(Stream stream)
        {
            object first = null;

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

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