Exemplo n.º 1
0
 string XElementToValue(string varName)
 {
     return(BindedType != null
                         ? string.Format("new {0}({1})", BindedType.GetCodeName(), varName)
                         : string.Format("{0}.Value", varName));
 }
Exemplo n.º 2
0
        public string GetCodeType()
        {
            string type = BindedType != null?BindedType.GetCodeName() : XmlType;

            return(!IsList ? type : string.Format("IList<{0}>", type));
        }