Last change
on this file since 13518 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
610 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Xml;
|
---|
3 |
|
---|
4 | namespace SharpVectors.Dom
|
---|
5 | {
|
---|
6 | /// <summary>
|
---|
7 | /// Summary description for Conversion.
|
---|
8 | /// </summary>
|
---|
9 | internal static class Conversion
|
---|
10 | {
|
---|
11 | internal static INode Cast(XmlNode node)
|
---|
12 | {
|
---|
13 | try
|
---|
14 | {
|
---|
15 | return (INode)node;
|
---|
16 | }
|
---|
17 | catch (InvalidCastException)
|
---|
18 | {
|
---|
19 | throw new DomException(DomExceptionType.WrongDocumentErr);
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
23 | internal static XmlNode Cast(INode node)
|
---|
24 | {
|
---|
25 | try
|
---|
26 | {
|
---|
27 | return (XmlNode)node;
|
---|
28 | }
|
---|
29 | catch (InvalidCastException)
|
---|
30 | {
|
---|
31 | throw new DomException(DomExceptionType.WrongDocumentErr);
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.