Nullable Parameters

  1. #1

    Nullable Parameters

    Is it possible to use nullable parameters ?

    I have

          [DirectMethod]
    	public void Test(int? testParameter)
    	{
    	}
    called as
    Ext.net.DirectMethods.Test(null, {
    				commplete: Ext.emptyFn
    				
    			});
    And I got the


    Newtonsoft.Json.JsonReaderException: Unexpected end when reading integer. Line 0, position 0. at Newtonsoft.Json.JsonTextReader.ReadAsInt32() at Newtonsoft.Json.Serialization.JsonSerializerIntern alReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter, Boolean inArray) at Newtonsoft.Json.Serialization.JsonSerializerIntern alReader.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(Stri ng value, Type type, JsonSerializerSettings settings) at Ext.Net.JSON.Deserialize(String value, Type type, List`1 converters, IContractResolver resolver) at Ext.Net.DirectMethod.Invoke(Object target, HttpContext context, ParameterCollection args) at Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument)
  2. #2
    Hi,

    Unfortunatelly, v1 doesn't allow it.
    We implemented it in Ext.Net v2 only

Similar Threads

  1. nullable TextField with Vtype of email
    By javadzarrin in forum 1.x Help
    Replies: 1
    Last Post: Sep 06, 2010, 7:40 PM
  2. [CLOSED] Why ThreeStateBool instead Nullable<bool>?
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 31, 2010, 2:38 PM
  3. [CLOSED] Nullable number field
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 02, 2010, 5:06 PM
  4. [CLOSED] Nullable (three state) checkbox
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 25, 2010, 10:41 AM

Posting Permissions