Exemplo n.º 1
0
        public void CheckVersion(Version version)
        {
            if (!DescriptionMap.Version.Equals(version))
            {
                throw new VersionInvariant("Check failed: content description map version");
            }

            Codec.CheckVersion(version);
        }
Exemplo n.º 2
0
        public void CheckVersion(Version version)
        {
            if (!DescriptionMap.Version.Equals(version))
            {
                throw new VersionInvariant("Check failed: tag description map version");
            }

            Codec.CheckVersion(version);

            foreach (Frame frame in Frames)
            {
                frame.CheckVersion(version);
            }
        }
Exemplo n.º 3
0
        public void CheckVersion(Version version)
        {
            if (!DescriptionMap.Version.Equals(version))
            {
                throw new VersionInvariant("Check failed: frame description map version");
            }

            if (!DescriptionMap.FrameIds.Contains(FrameId) &&
                !FrameDescription.IsExperimentalFrameId(FrameId) &&
                !FrameDescription.MaybeFrameId(FrameId))
            {
                throw new InvalidFrameException("Check failed: frame ID invalid");
            }

            Codec.CheckVersion(version);
            Content.CheckVersion(version);
        }