mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Add HasValue and Vale properties for nullable types
This commit is contained in:
parent
b38a1a6db0
commit
c1d7ecea72
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -57,6 +57,14 @@
|
||||
<Get>Byte.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Byte</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -164,6 +164,14 @@
|
||||
<Get>Character.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Char</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -205,6 +205,14 @@
|
||||
<Get>Double.POSITIVE_INFINITY</Get>
|
||||
<Set>${this:16}.setPositiveInfinity(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Double</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -57,6 +57,14 @@
|
||||
<Get>Short.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Int16</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -93,6 +93,14 @@
|
||||
<Get>Integer.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Int32</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -64,6 +64,14 @@
|
||||
<Get>Long.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Int64</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -15,6 +15,16 @@
|
||||
<Inherits>
|
||||
<Type>System.Object</Type>
|
||||
</Inherits>
|
||||
<Properties>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this} != null</Java>
|
||||
<Type>System.Boolean</Type>
|
||||
<Name>HasValue</Name>
|
||||
<Get>${this} != null</Get>
|
||||
<Set>${this:16}.setHasValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Methods>
|
||||
<Method>
|
||||
<Imports>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -57,6 +57,14 @@
|
||||
<Get>Byte.MAX_VALUE</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.SByte</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -28,7 +28,16 @@
|
||||
<Return>System.String</Return>
|
||||
</Method>
|
||||
</Methods>
|
||||
<Properties />
|
||||
<Properties>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.Single</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
<Constructors />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
|
||||
This file is
|
||||
@ -57,6 +57,14 @@
|
||||
<Get>4294967295L /* UInt32.MaxValue */</Get>
|
||||
<Set>${this:16}.setMaxValue(${value})</Set>
|
||||
</Property>
|
||||
<Property>
|
||||
<Imports />
|
||||
<Java>${this}</Java>
|
||||
<Type>System.UInt32</Type>
|
||||
<Name>Value</Name>
|
||||
<Get>${this}</Get>
|
||||
<Set>${this:16}.setValue(${value})</Set>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events />
|
||||
<Indexers />
|
||||
|
Loading…
x
Reference in New Issue
Block a user