CSLE.SType.NewStatic C# (CSharp) Метод

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

public NewStatic ( ICLS_Environment env ) : void
env ICLS_Environment
Результат void
        void NewStatic(ICLS_Environment env)
        {
            if (contentMemberCalc == null)
                contentMemberCalc = new CLS_Content(env);
            if (this.staticMemberInstance == null)
            {
                staticMemberInstance = new Dictionary<string, CLS_Content.Value>();
                foreach (var i in this.members)
                {
                    if (i.Value.bStatic == true)
                    {
                        if (i.Value.expr_defvalue == null)
                        {
                            staticMemberInstance[i.Key] = new CLS_Content.Value();

                            staticMemberInstance[i.Key].type = i.Value.type.type;
                            staticMemberInstance[i.Key].value = i.Value.type.DefValue;
                        }
                        else
                        {
                            var value = i.Value.expr_defvalue.ComputeValue(contentMemberCalc);
                            if (i.Value.type.type != value.type)
                            {
                                staticMemberInstance[i.Key] = new CLS_Content.Value();
                                staticMemberInstance[i.Key].type = i.Value.type.type;
                                staticMemberInstance[i.Key].value = env.GetType(value.type).ConvertTo(contentMemberCalc, value.value, i.Value.type.type);
                            }
                            else
                            {
                                staticMemberInstance[i.Key] = value;
                            }


                        }
                    }
                }
            }
        }
        public CLS_Content.Value StaticCall(CLS_Content contentParent, string function, IList<CLS_Content.Value> _params)