// ReSharper disable UnusedParameter.Local private void AnalyzeVersionDirective(VersionDirective versionDirective) { if (versionDirective.Version.Major != Constants.MajorVersion || versionDirective.Version.Minor != Constants.MinorVersion) { throw new YamlException("Incompatible %YAML directive"); } }
protected DocumentStart DocumentStart(bool isImplicit, VersionDirective version, params TagDirective[] tags) { return new DocumentStart(version, new TagDirectiveCollection(tags), isImplicit); }
protected DocumentStart DocumentStart(bool isImplicit, VersionDirective version, params TagDirective[] tags) { return(new DocumentStart(version, new TagDirectiveCollection(tags), isImplicit)); }