Define() public method

public Define ( string name, CLType type ) : void
name string
type CLType
return void
        public CLS_Content.Value ComputeValue(CLS_Content content)
        {
            content.InStack(this);

            if (_listParam != null && _listParam.Count > 0)
            {

                CLS_Content.Value v = _listParam[0].ComputeValue(content);
                object val = v.value;
                if ((Type)value_type == typeof(CLS_Type_Var.var))
                {
                    if(v.type!=null)
                        value_type = v.type;
                    
                }
                else if (v.type != value_type)
                {
                    val = content.environment.GetType(v.type).ConvertTo(content, v.value, value_type);
                   
                }

                content.DefineAndSet(value_name, value_type, val);
            }
            else
            {
                content.Define(value_name, value_type);
            }
            //设置环境变量为
            content.OutStack(this);

            return null;
        }
        public CLS_Content.Value ComputeValue(CLS_Content content)
        {
            content.InStack(this);

            if (_listParam != null && _listParam.Count > 0)
            {
                CLS_Content.Value v   = _listParam[0].ComputeValue(content);
                object            val = v.value;
                if ((Type)value_type == typeof(CLS_Type_Var.var))
                {
                    if (v.type != null)
                    {
                        value_type = v.type;
                    }
                }
                else if (v.type != value_type)
                {
                    val = content.environment.GetType(v.type).ConvertTo(content, v.value, value_type);
                }

                content.DefineAndSet(value_name, value_type, val);
            }
            else
            {
                content.Define(value_name, value_type);
            }
            //设置环境变量为
            content.OutStack(this);

            return(null);
        }
 public CLS_Content.Value ComputeValue(CLS_Content content)
 {
     content.InStack(this);
     if (_listParam != null && _listParam.Count > 0)
         content.DefineAndSet(value_name, value_type, _listParam[0].ComputeValue(content).value);
     else
         content.Define(value_name, value_type);
     content.OutStack(this);
     return null;
 }
 public CLS_Content.Value ComputeValue(CLS_Content content)
 {
     content.InStack(this);
     if (_listParam != null && _listParam.Count > 0)
     {
         content.DefineAndSet(value_name, value_type, _listParam[0].ComputeValue(content).value);
     }
     else
     {
         content.Define(value_name, value_type);
     }
     content.OutStack(this);
     return(null);
 }