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,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