SenseNet.ContentRepository.Fields.LongTextFieldSetting.GetProperty C# (CSharp) 메소드

GetProperty() 공개 메소드

public GetProperty ( string name, bool &found ) : object
name string
found bool
리턴 object
        public override object GetProperty(string name, out bool found)
        {
            var val = base.GetProperty(name, out found);

            if (!found)
            {
                switch (name)
                {
                    case TextTypeName:
                        found = true;
                        if (_textType.HasValue)
                            val = (int)_textType.Value;
                        break;
                    case AppendModificationsName:
                        found = true;
                        if (_appendModifications.HasValue)
                            val = _appendModifications.Value ? YesNoFieldSetting.YesValue : YesNoFieldSetting.NoValue;
                        break;
                }
            }

            return found ? val : null;
        }