// Copyright © 2018 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Collections.Generic;
using ValueType = CefSharp.Enums.ValueType;
namespace CefSharp
{
///
/// Interface representing CefValue.
///
public interface IValue : IDisposable
{
///
/// Returns the underlying value type.
///
///
/// Returns the underlying value type.
///
ValueType Type { get; }
///
/// Returns the underlying value as type bool.
///
///
/// Returns the underlying value as type bool.
///
bool GetBool();
///
/// Returns the underlying value as type double.
///
///
/// Returns the underlying value as type double.
///
double GetDouble();
///
/// Returns the underlying value as type int.
///
///
/// Returns the underlying value as type int.
///
int GetInt();
///
/// Returns the underlying value as type string.
///
///
/// Returns the underlying value as type string.
///
string GetString();
///
/// Returns the underlying value as type dictionary.
///
///
/// Returns the underlying value as type dictionary.
///
IDictionary GetDictionary();
///
/// Returns the underlying value as type list.
///
///
/// Returns the underlying value as type list.
///
IList GetList();
///
/// Returns the underlying value converted to a managed object.
///
///
/// Returns the underlying value converted to a managed object.
///
object GetObject();
}
}