Skip to content

IntValueConverter , If (o == null) ---- should return null.  #11

Open
@malcolmjerry

Description

@malcolmjerry

`
public class IntValueConverter : ValueConverter{

      public override object FromJson (object o) {
		if(o == null){
	           //return 0;   
                   return null;   //here  should return null !!!!!!!!!!!!
      }

}

And we should add a FieldLister converters :

	public FieldLister () {
	    converters.Add(typeof(string),new StringValueConverter());
	    converters.Add(typeof(int),new IntValueConverter());
            converters.Add(typeof(int? ), new IntValueConverter());  //New added!!!!!!!
        }	

.............................`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions