You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,49 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="ConnectionStringsSection.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.Configuration {
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Configuration;
|
||||
using System.Collections.Specialized;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
public sealed class ConnectionStringsSection : ConfigurationSection {
|
||||
private static ConfigurationPropertyCollection _properties;
|
||||
private static readonly ConfigurationProperty _propConnectionStrings =
|
||||
new ConfigurationProperty(null, typeof(ConnectionStringSettingsCollection), null,
|
||||
ConfigurationPropertyOptions.IsDefaultCollection);
|
||||
|
||||
static ConnectionStringsSection() {
|
||||
// Property initialization
|
||||
_properties = new ConfigurationPropertyCollection();
|
||||
_properties.Add(_propConnectionStrings);
|
||||
}
|
||||
|
||||
public ConnectionStringsSection() {
|
||||
}
|
||||
|
||||
protected internal override object GetRuntimeObject() {
|
||||
SetReadOnly();
|
||||
return this; // return the read only object
|
||||
}
|
||||
|
||||
protected internal override ConfigurationPropertyCollection Properties {
|
||||
get {
|
||||
return _properties;
|
||||
}
|
||||
}
|
||||
|
||||
[ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
|
||||
public ConnectionStringSettingsCollection ConnectionStrings {
|
||||
get {
|
||||
return (ConnectionStringSettingsCollection)base[_propConnectionStrings];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user