public SynesisAnalyticsModel(XmlSchemaSet schema) { { int min, max; var typeName = new XmlQualifiedName("DisplacementSensitivityValue", "http://www.synesis.ru/onvif/VideoAnalytics"); if (schema.TryGetIntLimitsOfGlobalType(typeName, out min, out max)) { this.DisplacementSensitivityValueMin = min; this.DisplacementSensitivityValueMax = max; } } { int min, max; var typeName = new XmlQualifiedName("ContrastSensitivityValue", "http://www.synesis.ru/onvif/VideoAnalytics"); if (schema.TryGetIntLimitsOfGlobalType(typeName, out min, out max)) { this.ContrastSensitivityValueMin = min; this.ContrastSensitivityValueMax = max; } } }