Fluorine .NET Flash Remoting Gateway

Null values

The <nullable> configuration section allows the use of special value of the given value type as the null value.

Use this solution only when you can identify a value which is unused.

<nullable>
    <type name="System.Int32" assembly="MinValue"/>
    <type name="System.Double" assembly="MinValue"/>
    <type name="System.DateTime" assembly="MinValue"/>
    <type name="System.Guid" assembly="Empty"/>
</nullable>
			

The name attribute is the fully qualified type name, the value attribute is a static member of the type (such as "MinValue") or a parseable value (0 for System.Int32 for example).

The acceptNullValueTypes option

Fluorine will accept null values sent from client for value-types if configured accordingly

<appSettings>
    <add key="acceptNullValueTypes" value="false"/>
</appSettings>
			

If acceptNullValueTypes = true (the default is false if not specified) any value-type that is not explicitly initialized with a value will contain the default value for that object type (0 for numeric types, false for Boolean, DateTime.Min for DateTime)