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
71
external/referencesource/System.Configuration/System/Configuration/StreamInfo.cs
vendored
Normal file
71
external/referencesource/System.Configuration/System/Configuration/StreamInfo.cs
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="StreamInfo.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.Configuration {
|
||||
using System.Configuration.Internal;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Configuration;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Permissions;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
// Information about a stream used in configuration
|
||||
class StreamInfo {
|
||||
private string _sectionName; // the section the stream contains for configSource, null for a full config file
|
||||
private string _configSource; // the configSource directive that generated this stream, null for a full config file
|
||||
private string _streamName; // name of the stream
|
||||
private bool _isMonitored; // is the stream currently monitored?
|
||||
private object _version; // version that we're monitoring
|
||||
|
||||
internal StreamInfo(string sectionName, string configSource, string streamName) {
|
||||
_sectionName = sectionName;
|
||||
_configSource = configSource;
|
||||
_streamName = streamName;
|
||||
}
|
||||
|
||||
private StreamInfo() {
|
||||
}
|
||||
|
||||
internal StreamInfo Clone() {
|
||||
StreamInfo clone = new StreamInfo();
|
||||
|
||||
clone._sectionName = this._sectionName;
|
||||
clone._configSource = this._configSource;
|
||||
clone._streamName = this._streamName;
|
||||
clone._isMonitored = this._isMonitored;
|
||||
clone._version = this._version;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
internal string SectionName {
|
||||
get { return _sectionName; }
|
||||
}
|
||||
|
||||
internal string ConfigSource {
|
||||
get { return _configSource; }
|
||||
}
|
||||
|
||||
internal string StreamName {
|
||||
get { return _streamName; }
|
||||
}
|
||||
|
||||
internal bool IsMonitored {
|
||||
get { return _isMonitored; }
|
||||
set { _isMonitored = value;}
|
||||
}
|
||||
|
||||
internal object Version {
|
||||
get { return _version; }
|
||||
set { _version = value; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user