/// <summary> /// Initializes the <see cref="Document"/>. /// </summary> void Load() { if (Uri != null && Modules != null) { var cfg = new NXDocumentConfiguration(); foreach (var moduleType in Modules) { cfg.AddModule(moduleType); } Document = new NXDocument(new Resolver(), Uri, cfg); } else { Document = null; } }
/// <summary> /// Initializes the <see cref="Document"/>. /// </summary> void Load() { if (Uri != null && Modules != null) { var cfg = new NXDocumentConfiguration(); foreach (var moduleType in Modules) cfg.AddModule(moduleType); Document = new NXDocument(new Resolver(), Uri, cfg); } else Document = null; }