1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00
2010-08-26 12:13:37 +02:00

109 lines
2.8 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Translation.xsd"
>
<!-- <Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file://C:/Documents%20and%20Settings/kevin.glynn/My%20Documents/CS2JLibrary/Translation.xsd"
> -->
<Name>System.Convert</Name>
<Properties>
<Property>
<Type>System.Object</Type>
<Name>DBNull</Name>
<Get>null</Get>
</Property>
</Properties>
<Methods>
<Method>
<Return>System.Boolean</Return>
<Name>ToBoolean</Name>
<Params>
<Param>
<Type>System.Number</Type>
<Name>value</Name>
</Param>
</Params>
<Java>((${value}) > 0)</Java>
</Method>
<Method>
<Return>System.Boolean</Return>
<Name>ToBoolean</Name>
<Params>
<Param>
<Type>System.Boolean</Type>
<Name>value</Name>
</Param>
</Params>
<Java>${value}</Java>
</Method>
<Method>
<Return>System.Int32</Return>
<Name>ToInt32</Name>
<Params>
<Param>
<Type>System.String</Type>
<Name>value</Name>
</Param>
</Params>
<Java>Integer.valueOf(${value})</Java>
</Method>
<Method>
<Return>System.Int32</Return>
<Name>ToInt32</Name>
<Params>
<Param>
<Type>System.Number</Type>
<Name>value</Name>
</Param>
</Params>
<Java>(int)Math.round(${value})</Java>
</Method>
<Method>
<Return>System.Int64</Return>
<Name>ToInt64</Name>
<Params>
<Param>
<Type>System.String</Type>
<Name>value</Name>
</Param>
</Params>
<Java>Long.valueOf(${value})</Java>
</Method>
<Method>
<Return>System.Int64</Return>
<Name>ToInt64</Name>
<Params>
<Param>
<Type>System.Number</Type>
<Name>value</Name>
</Param>
</Params>
<Java>(long)Math.round(${value})</Java>
</Method>
<Method>
<Return>System.Int64</Return>
<Name>ToDateTime</Name>
<Params>
<Param>
<Type>System.String</Type>
<Name>value</Name>
</Param>
</Params>
<Imports>
<Import>RusticiSoftware.System.DateTimeSupport</Import>
</Imports>
<Java>DateTimeSupport.parse(${value})</Java>
</Method>
<Method>
<Return>System.String</Return>
<Name>ToString</Name>
<Params>
<Param>
<Type>System.Int32</Type>
<Name>value</Name>
</Param>
</Params>
<Java>Integer.toString(${value})</Java>
</Method>
</Methods>
</Class>