Ejemplo n.º 1
0
    public JsonSimpleProperty SimpleProperty(PropertyInfo pinfo)
    {
        var property = new JsonSimpleProperty(pinfo);

        this.m_properties.Add(pinfo, property);

        return(property);
    }
Ejemplo n.º 2
0
    public JsonSimpleProperty SimpleProperty <T, TProperty> (Expression <Func <T, TProperty> > propertyExpr)
    {
        var propertyInfo = (PropertyInfo)(propertyExpr.Body as MemberExpression).Member;
        var property     = new JsonSimpleProperty(propertyInfo);

        this.m_properties.Add(propertyInfo, property);

        return(property);
    }