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
39
external/referencesource/System.Configuration/System/Configuration/ConfigXmlComment.cs
vendored
Normal file
39
external/referencesource/System.Configuration/System/Configuration/ConfigXmlComment.cs
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="ConfigXmlComment.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.Configuration
|
||||
{
|
||||
using System.Configuration.Internal;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Security.Permissions;
|
||||
|
||||
internal sealed class ConfigXmlComment : XmlComment, IConfigErrorInfo {
|
||||
int _line;
|
||||
string _filename;
|
||||
|
||||
public ConfigXmlComment( string filename, int line, string comment, XmlDocument doc )
|
||||
: base( comment, doc ) {
|
||||
_line = line;
|
||||
_filename = filename;
|
||||
}
|
||||
int IConfigErrorInfo.LineNumber {
|
||||
get { return _line; }
|
||||
}
|
||||
string IConfigErrorInfo.Filename {
|
||||
get { return _filename; }
|
||||
}
|
||||
public override XmlNode CloneNode(bool deep) {
|
||||
XmlNode cloneNode = base.CloneNode(deep);
|
||||
ConfigXmlComment clone = cloneNode as ConfigXmlComment;
|
||||
if (clone != null) {
|
||||
clone._line = _line;
|
||||
clone._filename = _filename;
|
||||
}
|
||||
return cloneNode;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user