コード例 #1
0
ファイル: PropertyInfo.cs プロジェクト: i-e-b/XsdToObject
 string XElementToValue(string varName)
 {
     return(BindedType != null
                         ? string.Format("new {0}({1})", BindedType.GetCodeName(), varName)
                         : string.Format("{0}.Value", varName));
 }
コード例 #2
0
ファイル: PropertyInfo.cs プロジェクト: i-e-b/XsdToObject
        public string GetCodeType()
        {
            string type = BindedType != null?BindedType.GetCodeName() : XmlType;

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