System.Xml.Serialization.CodeExporter.CheckScope C# (CSharp) Method

CheckScope() private method

private CheckScope ( TypeScope scope ) : void
scope TypeScope
return void
        internal void CheckScope(TypeScope scope) {
            if (this.scope == null) {
                this.scope = scope;
            }
            else if (this.scope != scope) {
                throw new InvalidOperationException(Res.GetString(Res.XmlMappingsScopeMismatch));
            }
        }