SenseNet.ContentRepository.Fields.LongTextFieldSetting.SetProperty C# (CSharp) Method

SetProperty() public method

public SetProperty ( string name, object value ) : bool
name string
value object
return bool
        public override bool SetProperty(string name, object value)
        {
            var found = base.SetProperty(name, value);

            if (!found)
            {
                var sv = value as string;

                switch (name)
                {
                    case TextTypeName:
                        found = true;
                        if (value != null)
                            _textType = (TextType)Convert.ToInt32(value);
                        break;
                    case AppendModificationsName:
                        found = true;
                        if (!string.IsNullOrEmpty(sv))
                            _appendModifications = sv.CompareTo(YesNoFieldSetting.YesValue) == 0;
                        break;
                }
            }

            return found;
        }