Clone() публичный Метод

public Clone ( ) : CLS_Content
Результат CLS_Content
 public CLS_Content.Value ComputeValue(CLS_Content content)
 {
     return(new CLS_Content.Value()
     {
         type = typeof(IEnumerator), value = CustomCoroutine(content.Clone())
     });
 }
Пример #2
0
 public DeleLambda(CLS_Content content, IList <ICLS_Expression> param, ICLS_Expression func)
 {
     this.content   = content.Clone();
     this.expr_func = func;
     for (int i = 0, count = param.Count; i < count; i++)
     {
         CLS_Expression_GetValue v1 = param[i] as CLS_Expression_GetValue;
         if (v1 != null)
         {
             paramTypes.Add(null);
             paramNames.Add(v1.value_name);
             continue;
         }
         CLS_Expression_Define v2 = param[i] as CLS_Expression_Define;
         if (v2 != null)
         {
             paramTypes.Add(v2.value_type);
             paramNames.Add(v2.value_name);
             continue;
         }
         throw new Exception("DeleLambda 参数不正确");
     }
 }
Пример #3
0
 public DeleLambda(CLS_Content content, IList<ICLS_Expression> param, ICLS_Expression func)
 {
     this.content = content.Clone();
     this.expr_func = func;
     for (int i = 0, count = param.Count; i < count; i++)
     {
         CLS_Expression_GetValue v1 = param[i] as CLS_Expression_GetValue;
         if (v1 != null)
         {
             paramTypes.Add(null);
             paramNames.Add(v1.value_name);
             continue;
         }
         CLS_Expression_Define v2 = param[i] as CLS_Expression_Define;
         if (v2 != null)
         {
             paramTypes.Add(v2.value_type);
             paramNames.Add(v2.value_name);
             continue;
         }
         throw new Exception("DeleLambda 参数不正确");
     }
 }
Пример #4
0
 public DeleLambda(CLS_Content content, IList <ICLS_Expression> param, ICLS_Expression func)
 {
     this.content   = content.Clone();
     this.expr_func = func;
     foreach (var p in param)
     {
         CLS_Expression_GetValue v1 = p as CLS_Expression_GetValue;
         CLS_Expression_Define   v2 = p as CLS_Expression_Define;
         if (v1 != null)
         {
             paramTypes.Add(null);
             paramNames.Add(v1.value_name);
         }
         else if (v2 != null)
         {
             paramTypes.Add(v2.value_type);
             paramNames.Add(v2.value_name);
         }
         else
         {
             throw new Exception("DeleLambda 参数不正确");
         }
     }
 }
Пример #5
0
 public DeleLambda(CLS_Content content,IList<ICLS_Expression> param,ICLS_Expression func)
 {
     this.content = content.Clone();
     this.expr_func = func;
     foreach(var p in param)
     {
         CLS_Expression_GetValue v1 = p as CLS_Expression_GetValue;
         CLS_Expression_Define v2 = p as CLS_Expression_Define;
         if (v1 != null)
         {
             paramTypes.Add(null);
             paramNames.Add(v1.value_name);
         }
         else if (v2 != null)
         {
             paramTypes.Add(v2.value_type);
             paramNames.Add(v2.value_name);
         }
         else
         {
             throw new Exception("DeleLambda 参数不正确");
         }
     }
 }
 public CLS_Content.Value ComputeValue(CLS_Content content)
 {
     return new CLS_Content.Value() { type = typeof(IEnumerator), value = CustomCoroutine(content.Clone()) };
 }