string XElementToValue(string varName) { return(BindedType != null ? string.Format("new {0}({1})", BindedType.GetCodeName(), varName) : string.Format("{0}.Value", varName)); }
public string GetCodeType() { string type = BindedType != null?BindedType.GetCodeName() : XmlType; return(!IsList ? type : string.Format("IList<{0}>", type)); }