SenseNet.ContentRepository.Fields.IntegerFieldSetting.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 ShowAsPercentageName:
                        found = true;
                        if (_showAsPercentage.HasValue)
                            val = _showAsPercentage.Value ? YesNoFieldSetting.YesValue : YesNoFieldSetting.NoValue;
                        break;
                }
            }

            return found ? val : null;
        }