public XamlObjectWriter (XamlSchemaContext schemaContext, XamlObjectWriterSettings settings) { if (schemaContext == null) throw new ArgumentNullException ("schemaContext"); this.sctx = schemaContext; this.settings = settings ?? new XamlObjectWriterSettings (); var manager = new XamlWriterStateManager<XamlObjectWriterException, XamlObjectWriterException> (false); intl = new XamlObjectWriterInternal (this, sctx, manager); }
public XamlObjectWriter(XamlSchemaContext schemaContext, XamlObjectWriterSettings settings, IAmbientProvider parentAmbientProvider) { if (schemaContext == null) { throw new ArgumentNullException("schemaContext"); } this.sctx = schemaContext; this.settings = settings ?? new XamlObjectWriterSettings(); var manager = new XamlWriterStateManager <XamlObjectWriterException, XamlObjectWriterException>(false); intl = new XamlObjectWriterInternal(this, sctx, manager, parentAmbientProvider); }