Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-11-07 00:25:38 +0300
committerMiguel de Icaza <miguel@gnome.org>2009-11-07 00:25:38 +0300
commit4baa1d2bc2c7d8bb4c7181b83eac3146c0681666 (patch)
tree9927ff110ec25da72b4afd2f1cdc313871ae2c43 /mcs/class/corlib/System.Security/SecurityElement.cs
parent22429fdd7886171c629cf66d1490e32697dc8fd0 (diff)
More removal of old defines
svn path=/trunk/mcs/; revision=145609
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityElement.cs')
-rw-r--r--mcs/class/corlib/System.Security/SecurityElement.cs22
1 files changed, 1 insertions, 21 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityElement.cs b/mcs/class/corlib/System.Security/SecurityElement.cs
index 7fd209bd6b7..9ba34115463 100644
--- a/mcs/class/corlib/System.Security/SecurityElement.cs
+++ b/mcs/class/corlib/System.Security/SecurityElement.cs
@@ -38,9 +38,7 @@ using Mono.Xml;
namespace System.Security {
-#if NET_2_0
[ComVisible (true)]
-#endif
[Serializable]
public sealed class SecurityElement
{
@@ -232,13 +230,11 @@ namespace System.Security {
return ((sa == null) ? null : sa.Value);
}
-#if NET_2_0
[ComVisible (false)]
public SecurityElement Copy ()
{
return new SecurityElement (this);
}
-#endif
public bool Equal (SecurityElement other)
{
@@ -332,12 +328,7 @@ namespace System.Security {
return sb.ToString ();
}
-#if NET_2_0
- public
-#else
- internal
-#endif
- static SecurityElement FromString (string xml)
+ public static SecurityElement FromString (string xml)
{
if (xml == null)
throw new ArgumentNullException ("xml");
@@ -419,24 +410,13 @@ namespace System.Security {
private void ToXml (ref StringBuilder s, int level)
{
-#if ! NET_2_0
- s.Append (' ', level * 3);
-#endif
s.Append ("<");
s.Append (tag);
if (attributes != null) {
-#if NET_2_0
s.Append (" ");
-#endif
for (int i=0; i < attributes.Count; i++) {
SecurityAttribute sa = (SecurityAttribute) attributes [i];
-#if ! NET_2_0
- s.Append (" ");
- // all other attributes must align with the first one
- if (i != 0)
- s.Append (' ', (level * 3) + tag.Length + 1);
-#endif
s.Append (sa.Name)
.Append ("=\"")
.Append (Escape (sa.Value))