public void CheckVersion(Version version) { if (!DescriptionMap.Version.Equals(version)) { throw new VersionInvariant("Check failed: content description map version"); } Codec.CheckVersion(version); }
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); } }
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); }