예제 #1
0
        /// <nodoc />
        public static Qualifier Deserialize(BuildXLReader reader)
        {
            Contract.RequiresNotNull(reader);

            var keys   = reader.ReadArray(r => r.ReadStringId());
            var values = reader.ReadArray(r => r.ReadStringId());

            return(new Qualifier(keys, values));
        }
예제 #2
0
        /// <nodoc />
        public static QualifierSpace Deserialize(BuildXLReader reader)
        {
            Contract.Requires(reader != null);

            var keys        = reader.ReadArray(r => r.ReadStringId());
            var defaults    = reader.ReadArray(r => r.ReadStringId());
            var valueValues = reader.ReadArray(r => r.ReadArray(r2 => r2.ReadStringId()));

            return(new QualifierSpace(keys, defaults, valueValues));
        }
예제 #3
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="ContentHashList" /> class from its binary representation.
        /// </summary>
        public static ContentHashList Deserialize(BuildXLReader reader)
        {
            Contract.Requires(reader != null);

            var contentHashes = reader.ReadArray(r => new ContentHash(r));
            var payload       = ReadNullableArray(reader);

            return(new ContentHashList(contentHashes, payload));
        }