Пример #1
0
 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>();
 }
Пример #2
0
 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));
 }
Пример #3
0
 static SerializerTest()
 {
     KmlFactory.Register <ChildElement>(new XmlComponent(null, "ChildElementS", string.Empty));
     KmlFactory.Register <TestElement>(new XmlComponent(null, "TestElementS", string.Empty));
 }
Пример #4
0
 static KmlFactoryTest()
 {
     // Register our own type only once
     KmlFactory.Register <ManuallyRegisteredElement>(new XmlComponent(null, "test", ""));
 }
Пример #5
0
 static KmlFactoryTest()
 {
     // Register our own type only once
     KmlFactory.Register <TestElementClass1>(new XmlComponent(null, "test", string.Empty));
 }
Пример #6
0
 static IHtmlContentTest()
 {
     KmlFactory.Register <TestClass>(new XmlComponent(null, "file", "http://example.com"));
 }