/// <summary> /// Quickly register all well-known constructs within this framework. /// </summary> /// <param name="xpe"> The target XML Persist Engine instance. </param> public static void RegisterWellKnownConstructs(this IXmlPersistEngine xpe) { if ((object)xpe == null) throw new ArgumentNullException(nameof(xpe)); xpe.RegisterKnownXmlTextObject<TemplateXmlTextObject>(); xpe.RegisterKnownXmlObject<DebuggerBreakpointConstruct>(); xpe.RegisterKnownXmlObject<AssociativeContainerConstruct>(); xpe.RegisterKnownXmlObject<ArrayConstruct>(); xpe.RegisterKnownXmlObject<ObjectConstruct>(); xpe.RegisterKnownXmlObject<PropertyConstruct>(); xpe.RegisterKnownXmlObject<ProxyConstruct>(); xpe.RegisterKnownXmlObject<AspectConstruct>(); xpe.RegisterKnownXmlObject<BinaryExpressionConstruct>(); xpe.RegisterKnownXmlObject<ExpressionContainerConstruct>(); xpe.RegisterKnownXmlObject<FacetConstruct>(); xpe.RegisterKnownXmlObject<JavaScriptConstruct>(); xpe.RegisterKnownXmlObject<NullaryExpressionConstruct>(); xpe.RegisterKnownXmlObject<UnaryExpressionConstruct>(); xpe.RegisterKnownXmlObject<ValueConstruct>(); xpe.RegisterKnownXmlObject<AscendingConstruct>(); xpe.RegisterKnownXmlObject<DescendingConstruct>(); xpe.RegisterKnownXmlObject<SortContainerConstruct>(); xpe.RegisterKnownXmlObject<AliasConstruct>(); xpe.RegisterKnownXmlObject<AllocConstruct>(); xpe.RegisterKnownXmlObject<AssignConstruct>(); xpe.RegisterKnownXmlObject<DoUntilConstruct>(); xpe.RegisterKnownXmlObject<DoWhileConstruct>(); xpe.RegisterKnownXmlObject<ExpandoConstruct>(); xpe.RegisterKnownXmlObject<ForConstruct>(); xpe.RegisterKnownXmlObject<ForEachConstruct>(); xpe.RegisterKnownXmlObject<FreeConstruct>(); xpe.RegisterKnownXmlObject<IfConstruct>(); xpe.RegisterKnownXmlObject<ImportConstruct>(); xpe.RegisterKnownXmlObject<IncludeConstruct>(); xpe.RegisterKnownXmlObject<InvokeSourceStrategyConstruct>(); xpe.RegisterKnownXmlObject<LogConstruct>(); xpe.RegisterKnownXmlObject<OutputScopeConstruct>(); xpe.RegisterKnownXmlObject<ReferenceConstruct>(); xpe.RegisterKnownXmlObject<TemplateConstruct>(); xpe.RegisterKnownXmlObject<TemplateContainerConstruct>(); xpe.RegisterKnownXmlObject<UnlessConstruct>(); xpe.RegisterKnownXmlObject<UntilConstruct>(); xpe.RegisterKnownXmlObject<WhileConstruct>(); xpe.RegisterKnownXmlObject<WriteConstruct>(); }