40 lines
1.8 KiB
C#
40 lines
1.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Configuration
|
|
{
|
|
/// <summary>Provides a method for reading values of a particular type from the configuration.</summary>
|
|
// Token: 0x020003B9 RID: 953
|
|
[Token(Token = "0x20003B9")]
|
|
public class AppSettingsReader
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Configuration.AppSettingsReader" /> class.</summary>
|
|
// Token: 0x06001934 RID: 6452 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001934")]
|
|
[Address(RVA = "0x289D960", Offset = "0x289C760", VA = "0x18289D960")]
|
|
public AppSettingsReader()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the value for a specified key from the <see cref="P:System.Configuration.ConfigurationSettings.AppSettings" /> property and returns an object of the specified type containing the value from the configuration.</summary>
|
|
/// <param name="key">The key for which to get the value.</param>
|
|
/// <param name="type">The type of the object to return.</param>
|
|
/// <returns>The value of the specified key.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.
|
|
/// -or-
|
|
/// <paramref name="type" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">
|
|
/// <paramref name="key" /> does not exist in the <see langword="<appSettings>" /> configuration section.
|
|
/// -or-
|
|
/// The value in the <see langword="<appSettings>" /> configuration section for <paramref name="key" /> is not of type <paramref name="type" />.</exception>
|
|
// Token: 0x06001935 RID: 6453 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001935")]
|
|
[Address(RVA = "0x289D930", Offset = "0x289C730", VA = "0x18289D930")]
|
|
public object GetValue(string key, Type type)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|