Esempio n. 1
0
        public static IGeneAnnotationSource Read(IExtendedBinaryReader reader)
        {
            var dataSource       = reader.ReadAsciiString();
            var isArray          = reader.ReadBoolean();
            var jsonStringLength = reader.ReadOptInt32();
            var jsonStrings      = new string[jsonStringLength];

            for (int i = 0; i < jsonStringLength; i++)
            {
                jsonStrings[i] = reader.ReadString();
            }

            return(new GeneAnnotationSource(dataSource, jsonStrings, isArray));
        }