Permalink
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (41 sloc) 908 Bytes
//<SNIPPET1>
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace ApplicationSettingsArchitectureCS
{
[SettingsProvider("SqlSettingsProvider")]
class CustomSettings : ApplicationSettingsBase
{
// Implementation goes here.
}
}
//</SNIPPET1>
namespace ApplicationSettingsArchitectureCS
{
public abstract class DummySettingsBase
{
public abstract string ApplicationName
{
get;
set;
}
}
public class DummySettings : DummySettingsBase
{
//<SNIPPET2>
public override string ApplicationName
{
get
{
return (System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
}
set
{
// Do nothing.
}
}
//</SNIPPET2>
}
}