static ElementTest() { KmlFactory.Register <BaseElement>(new XmlComponent(null, nameof(BaseElement), nameof(ElementTest))); KmlFactory.Register <DerivedElement>(new XmlComponent(null, nameof(DerivedElement), nameof(ElementTest))); KmlFactory.RegisterExtension <BaseElement, BaseElementExtension>(); }
static ParserTest() { KmlFactory.Register <ChildElement>(new XmlComponent(null, "ChildElement", string.Empty)); KmlFactory.Register <TestElement>(new XmlComponent(null, "TestElement", string.Empty)); KmlFactory.Register <DoubleElement>(new XmlComponent(null, "DoubleElement", string.Empty)); }
static SerializerTest() { KmlFactory.Register <ChildElement>(new XmlComponent(null, "ChildElementS", string.Empty)); KmlFactory.Register <TestElement>(new XmlComponent(null, "TestElementS", string.Empty)); }
static KmlFactoryTest() { // Register our own type only once KmlFactory.Register <ManuallyRegisteredElement>(new XmlComponent(null, "test", "")); }
static KmlFactoryTest() { // Register our own type only once KmlFactory.Register <TestElementClass1>(new XmlComponent(null, "test", string.Empty)); }
static IHtmlContentTest() { KmlFactory.Register <TestClass>(new XmlComponent(null, "file", "http://example.com")); }