/// <summary>
 ///     成员树节点
 /// </summary>
 /// <param name="template">树节点模板</param>
 /// <param name="type">成员类型</param>
 /// <param name="name">当前节点成员名称</param>
 /// <param name="path">当前节点成员名称</param>
 internal TmphMemberNode(TmphTemplate template, TmphMemberType type, string name, string path)
 {
     _template = template;
     Type = type;
     _name = name;
     Path = path;
     foreach (var member in Members.Values)
     {
         //if (member.Member.customAttribute<Laurent.Lee.CLB.Code.ignore>(true) == null)
         if (!member.IsIgnore)
         {
             var outputAjax = member.GetAttribute<TmphWebView.TmphOutputAjax>(true, true);
             if (outputAjax != null && outputAjax.IsSetup)
             {
                 name = member.Member.Name;
                 Get(ref name, false);
             }
         }
     }
 }
 /// <summary>
 ///     if开始代码段
 /// </summary>
 /// <param name="type">成员类型</param>
 /// <param name="name">成员路径名称</param>
 /// <param name="ifName">if临时变量名称</param>
 protected void IfStart(TmphMemberType type, string name, string ifName)
 {
     if (type.IsStruct || type.Type.IsEnum)
     {
         if (type.IsBool)
         {
             CurrentCode.Append(@"
             if (", name, ")");
         }
         else if (type.IsAjaxToString)
         {
             CurrentCode.Append(@"
             if (", name, " != 0)");
         }
     }
     else
     {
         CurrentCode.Append(@"
             if (", name, " != null)");
     }
     CurrentCode.Append(@"
             {");
     if (ifName != null)
     {
         CurrentCode.Append(@"
                 ", ifName, " = true;");
     }
 }