Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetXsltConvertMethod()

bool System.Xml.Xsl.IlGen.XmlILVisitor.GetXsltConvertMethod ( XmlQueryType typSrc,
XmlQueryType typDst,
out MethodInfo meth )
inlineprivate

Definition at line 2350 of file XmlILVisitor.cs.

2351 {
2352 meth = null;
2353 if ((object)typDst == XmlQueryTypeFactory.BooleanX)
2354 {
2355 if ((object)typSrc == XmlQueryTypeFactory.Item)
2356 {
2357 meth = XmlILMethods.ItemToBool;
2358 }
2359 else if ((object)typSrc == XmlQueryTypeFactory.ItemS)
2360 {
2361 meth = XmlILMethods.ItemsToBool;
2362 }
2363 }
2364 else if ((object)typDst == XmlQueryTypeFactory.DateTimeX)
2365 {
2366 if ((object)typSrc == XmlQueryTypeFactory.StringX)
2367 {
2368 meth = XmlILMethods.StrToDT;
2369 }
2370 }
2371 else if ((object)typDst == XmlQueryTypeFactory.DecimalX)
2372 {
2373 if ((object)typSrc == XmlQueryTypeFactory.DoubleX)
2374 {
2375 meth = XmlILMethods.DblToDec;
2376 }
2377 }
2378 else if ((object)typDst == XmlQueryTypeFactory.DoubleX)
2379 {
2380 if ((object)typSrc == XmlQueryTypeFactory.DecimalX)
2381 {
2382 meth = XmlILMethods.DecToDbl;
2383 }
2384 else if ((object)typSrc == XmlQueryTypeFactory.IntX)
2385 {
2386 meth = XmlILMethods.IntToDbl;
2387 }
2388 else if ((object)typSrc == XmlQueryTypeFactory.Item)
2389 {
2390 meth = XmlILMethods.ItemToDbl;
2391 }
2392 else if ((object)typSrc == XmlQueryTypeFactory.ItemS)
2393 {
2394 meth = XmlILMethods.ItemsToDbl;
2395 }
2396 else if ((object)typSrc == XmlQueryTypeFactory.LongX)
2397 {
2398 meth = XmlILMethods.LngToDbl;
2399 }
2400 else if ((object)typSrc == XmlQueryTypeFactory.StringX)
2401 {
2402 meth = XmlILMethods.StrToDbl;
2403 }
2404 }
2405 else if ((object)typDst == XmlQueryTypeFactory.IntX)
2406 {
2407 if ((object)typSrc == XmlQueryTypeFactory.DoubleX)
2408 {
2409 meth = XmlILMethods.DblToInt;
2410 }
2411 }
2412 else if ((object)typDst == XmlQueryTypeFactory.LongX)
2413 {
2414 if ((object)typSrc == XmlQueryTypeFactory.DoubleX)
2415 {
2416 meth = XmlILMethods.DblToLng;
2417 }
2418 }
2419 else if ((object)typDst == XmlQueryTypeFactory.NodeNotRtf)
2420 {
2421 if ((object)typSrc == XmlQueryTypeFactory.Item)
2422 {
2423 meth = XmlILMethods.ItemToNode;
2424 }
2425 else if ((object)typSrc == XmlQueryTypeFactory.ItemS)
2426 {
2427 meth = XmlILMethods.ItemsToNode;
2428 }
2429 }
2430 else if ((object)typDst == XmlQueryTypeFactory.NodeSDod || (object)typDst == XmlQueryTypeFactory.NodeNotRtfS)
2431 {
2432 if ((object)typSrc == XmlQueryTypeFactory.Item)
2433 {
2434 meth = XmlILMethods.ItemToNodes;
2435 }
2436 else if ((object)typSrc == XmlQueryTypeFactory.ItemS)
2437 {
2438 meth = XmlILMethods.ItemsToNodes;
2439 }
2440 }
2441 else if ((object)typDst == XmlQueryTypeFactory.StringX)
2442 {
2443 if ((object)typSrc == XmlQueryTypeFactory.DateTimeX)
2444 {
2445 meth = XmlILMethods.DTToStr;
2446 }
2447 else if ((object)typSrc == XmlQueryTypeFactory.DoubleX)
2448 {
2449 meth = XmlILMethods.DblToStr;
2450 }
2451 else if ((object)typSrc == XmlQueryTypeFactory.Item)
2452 {
2453 meth = XmlILMethods.ItemToStr;
2454 }
2455 else if ((object)typSrc == XmlQueryTypeFactory.ItemS)
2456 {
2457 meth = XmlILMethods.ItemsToStr;
2458 }
2459 }
2460 return meth != null;
2461 }

References System.Xml.Xsl.XmlQueryTypeFactory.BooleanX, System.Xml.Xsl.XmlQueryTypeFactory.DateTimeX, System.Xml.Xsl.IlGen.XmlILMethods.DblToDec, System.Xml.Xsl.IlGen.XmlILMethods.DblToInt, System.Xml.Xsl.IlGen.XmlILMethods.DblToLng, System.Xml.Xsl.IlGen.XmlILMethods.DblToStr, System.Xml.Xsl.XmlQueryTypeFactory.DecimalX, System.Xml.Xsl.IlGen.XmlILMethods.DecToDbl, System.Xml.Xsl.XmlQueryTypeFactory.DoubleX, System.Xml.Xsl.IlGen.XmlILMethods.DTToStr, System.Xml.Xsl.IlGen.XmlILMethods.IntToDbl, System.Xml.Xsl.XmlQueryTypeFactory.IntX, System.Xml.Xsl.XmlQueryTypeFactory.Item, System.Xml.Xsl.XmlQueryTypeFactory.ItemS, System.Xml.Xsl.IlGen.XmlILMethods.ItemsToBool, System.Xml.Xsl.IlGen.XmlILMethods.ItemsToDbl, System.Xml.Xsl.IlGen.XmlILMethods.ItemsToNode, System.Xml.Xsl.IlGen.XmlILMethods.ItemsToNodes, System.Xml.Xsl.IlGen.XmlILMethods.ItemsToStr, System.Xml.Xsl.IlGen.XmlILMethods.ItemToBool, System.Xml.Xsl.IlGen.XmlILMethods.ItemToDbl, System.Xml.Xsl.IlGen.XmlILMethods.ItemToNode, System.Xml.Xsl.IlGen.XmlILMethods.ItemToNodes, System.Xml.Xsl.IlGen.XmlILMethods.ItemToStr, System.Xml.Xsl.IlGen.XmlILMethods.LngToDbl, System.Xml.Xsl.XmlQueryTypeFactory.LongX, System.Xml.Xsl.XmlQueryTypeFactory.NodeNotRtf, System.Xml.Xsl.XmlQueryTypeFactory.NodeNotRtfS, System.Xml.Xsl.XmlQueryTypeFactory.NodeSDod, System.Xml.Xsl.XmlQueryTypeFactory.StringX, System.Xml.Xsl.IlGen.XmlILMethods.StrToDbl, and System.Xml.Xsl.IlGen.XmlILMethods.StrToDT.

Referenced by System.Xml.Xsl.IlGen.XmlILVisitor.VisitXsltConvert().