AnsweredAssumed Answered

Using an Enum

Question asked by alanR on Apr 18, 2018
Latest reply on Apr 18, 2018 by Rick Davin

HI,

 

I declared an enum ;

private AFSummaryTypes _timeRangeMethod = AFSummaryTypes.None;

 

I would like to reference _timeRangeMethod in ;

  public string TimeRange

        {

            get { return _timeRange; }

            set

            {

                if (_timeRange != value)

                {

                    _timeRange = value;

                    if (_timeRange != null)

                        _timeRange = _timeRange.Trim();

                    SaveConfigChanges();

                }

            }

        }

When i change _timeRange  to _timeRangeMethod , i get , cannot implicitly convert type 'OSIsoft.AF.Data.AFSummaryTypes' to 'string'

Outcomes