CSLE.SType.StaticValueSet C# (CSharp) Method

StaticValueSet() public method

public StaticValueSet ( CLS_Content content, string valuename, object value ) : bool
content CLS_Content
valuename string
value object
return bool
        public bool StaticValueSet(CLS_Content content, string valuename, object value)
        {
            NewStatic(content.environment);
            if (this.staticMemberInstance.ContainsKey(valuename))
            {
                if (value != null && value.GetType() != (Type)this.members[valuename].type.type)
                {
                    if (value is SInstance)
                    {
                        if ((value as SInstance).type != (SType)this.members[valuename].type.type)
                        {
                            value = content.environment.GetType((value as SInstance).type).ConvertTo(content, value, this.members[valuename].type.type);
                        }
                    }
                    else if (value is DeleEvent)
                    {

                    }
                    else
                    {
                        value = content.environment.GetType(value.GetType()).ConvertTo(content, value, this.members[valuename].type.type);
                    }
                }
                this.staticMemberInstance[valuename].value = value;
                return true;
            }
            throw new NotImplementedException();
        }
        public CLS_Content.Value MemberCall(CLS_Content contentParent, object object_this, string func, IList<CLS_Content.Value> _params)