BindingFlags.Public needed here as Exception.HResult is now public in .NET 4.5. This...
[mono.git] / mcs / class / dlr / Runtime / Microsoft.Scripting.Core / Utils / IRuntimeVariables.cs
1 /* ****************************************************************************
2  *
3  * Copyright (c) Microsoft Corporation. 
4  *
5  * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
6  * copy of the license can be found in the License.html file at the root of this distribution. If 
7  * you cannot locate the  Apache License, Version 2.0, please send an email to 
8  * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9  * by the terms of the Apache License, Version 2.0.
10  *
11  * You must not remove this notice, or any other, from this software.
12  *
13  *
14  * ***************************************************************************/
15
16 namespace System.Runtime.CompilerServices {
17     /// <summary>
18     /// An interface to represent values of runtime variables.
19     /// </summary>
20     public interface IRuntimeVariables {
21         /// <summary>
22         /// Count of the variables.
23         /// </summary>
24         int Count { get; }
25
26         /// <summary>
27         /// An indexer to get/set the values of the runtime variables.
28         /// </summary>
29         /// <param name="index">An index of the runtime variable.</param>
30         /// <returns>The value of the runtime variable.</returns>
31         object this[int index] { get; set; }
32     }
33 }