Exemple #1
0
        public static T ReadStruct <T>(this BinaryReader reader) where T : struct
        {
            var structure = new WrappedStruct <T>();

            structure.Read(reader);
            return(structure.Value);
        }
Exemple #2
0
        public override void Read(BinaryReader reader)
        {
            Class16 class2 = new Class16();

            class2.Read(reader);
            string_0 = class2.string_0;
            WrappedStruct <int> struct2 = new WrappedStruct <int>();

            struct2.Read(reader);
            int_0 = struct2.Value;
        }