You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
committed by
Jo Shields
parent
aa7da660d6
commit
c042cd0c52
49
external/referencesource/System.Configuration/System/Configuration/ConnectionStringsSection.cs
vendored
Normal file
49
external/referencesource/System.Configuration/System/Configuration/ConnectionStringsSection.cs
vendored
Normal file
@ -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