Question: Given this enumeration, how would you access the integer-type value of 'AppState.Loading'?
- string currentState = (string)AppState.Loading;
- string currentState = AppState.Loading.integralVal;
- int currentState = AppState.Loading.rawValue;
- int currentState = (int)AppState.Loading;
Answer: The correct answer of the above question is Option D:int currentState = (int)AppState.Loading;