internal string GetEncryptedValue() { string savedString; switch (obscuredType) { case ObscuredPrefs.DataType.Int: savedString = ObscuredPrefs.EncryptIntValue(key, intValue); break; case ObscuredPrefs.DataType.String: savedString = ObscuredPrefs.EncryptStringValue(key, stringValue); break; case ObscuredPrefs.DataType.Float: savedString = ObscuredPrefs.EncryptFloatValue(key, floatValue); break; case ObscuredPrefs.DataType.Unknown: case ObscuredPrefs.DataType.UInt: case ObscuredPrefs.DataType.Double: case ObscuredPrefs.DataType.Long: case ObscuredPrefs.DataType.Bool: case ObscuredPrefs.DataType.ByteArray: case ObscuredPrefs.DataType.Vector2: case ObscuredPrefs.DataType.Vector3: case ObscuredPrefs.DataType.Quaternion: case ObscuredPrefs.DataType.Color: case ObscuredPrefs.DataType.Rect: savedString = stringValue; break; default: throw new ArgumentOutOfRangeException(); } return(savedString); }