Fluorine .NET Flash Remoting Gateway

Type conversion

The table below shows the type conversions from the received ActionScript type to .NET type

ActionScript Type .NET Type

undefined/null

null

Number

Any numeric type, as appropriate

Boolean

System.Boolean

Date

System.DateTime

String

System.String

XML

System.Xml.XmlDocument

Array

object array
IList
System.Collections.ArrayList

Associative Array

System.Collections.Hashtable

Object

com.TheSilentGroup.Fluorine.ASObject (Hashtable)
.NET typed object with a constructor that takes no parameters

Note: additionally if a TypeConverter is available it can further adapt the received value

 

The table below shows the type conversions .NET application data types to ActionScript

.NET Type ActionScript Type

null
DBNull
System.Data.SqlTypes.INullable(when IsNull = true)

null

Any number type
byte/sbyte
short/ushort
int/uint
long/ulong
decimal
float
double

Number

System.Enum

Number

System.Boolean

Boolean

System.DateTime

Date

System.String
System.Char

String

System.Guid

String

System.Xml.XmlDocument

XML

System.Array
System.Collections.ICollection
System.Collections.IList

Array

System.Collections.Hashtable
System.Collections.IDictionary

Associative Array

System.Data.DataTable

RecordSet

Sytem.Data.DataSet

Associative array of RecordSet objects

com.TheSilentGroup.Fluorine.ASObject
System.Exception

Object

com.TheSilentGroup.Fluorine.ASObject with Type property set
any other type

Typed Object/Object