diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2008-06-28 23:22:09 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2008-06-28 23:22:09 +0400 |
commit | 5ae85e3077ec889132d65f44e121bd3af9d15642 (patch) | |
tree | 055cb86724047f2ec8c88232040c3bbd0fc9328d /mcs/class/System.Security/System.Security.Cryptography.Xml | |
parent | e35d030cd02fd98eb577ed706a1af12dbe8348b5 (diff) |
2008-06-28 Sebastien Pouliot <sebastien@ximian.com>
* XmlDecryptionTransform.cs,
* XmlDsigC14NTransform.cs,
* XmlDsigEnvelopedSignatureTransform.cs,
* XmlDsigExcC14NTransform.cs,
* XmlDsigXsltTransform.cs: Replace Type.GetType("x") into typeof(x)
[Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
svn path=/trunk/mcs/; revision=106840
Diffstat (limited to 'mcs/class/System.Security/System.Security.Cryptography.Xml')
6 files changed, 14 insertions, 5 deletions
diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog b/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog index fe4c6549979..bb0f7a62eb8 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/ChangeLog @@ -1,3 +1,12 @@ +2008-06-28 Sebastien Pouliot <sebastien@ximian.com> + + * XmlDecryptionTransform.cs, + * XmlDsigC14NTransform.cs, + * XmlDsigEnvelopedSignatureTransform.cs, + * XmlDsigExcC14NTransform.cs, + * XmlDsigXsltTransform.cs: Replace Type.GetType("x") into typeof(x) + [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule] + 2008-05-25 Sebastien Pouliot <sebastien@ximian.com> * XmlDecryptionTransform.cs, diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDecryptionTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDecryptionTransform.cs index c65f7cea16c..40b8df7ecb8 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDecryptionTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDecryptionTransform.cs @@ -153,7 +153,7 @@ namespace System.Security.Cryptography.Xml { public override object GetOutput (Type type) { - if (type == Type.GetType ("Stream")) + if (type == typeof (Stream)) return GetOutput (); throw new ArgumentException ("type"); } diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigC14NTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigC14NTransform.cs index 463d06ab187..b08f8c662ec 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigC14NTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigC14NTransform.cs @@ -101,7 +101,7 @@ namespace System.Security.Cryptography.Xml { public override object GetOutput (Type type) { - if (type == Type.GetType ("Stream")) + if (type == typeof (Stream)) return GetOutput (); throw new ArgumentException ("type"); } diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigEnvelopedSignatureTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigEnvelopedSignatureTransform.cs index d9c939bbc57..059d39dff60 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigEnvelopedSignatureTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigEnvelopedSignatureTransform.cs @@ -154,7 +154,7 @@ namespace System.Security.Cryptography.Xml { public override object GetOutput (Type type) { - if (type == Type.GetType ("Stream")) + if (type == typeof (Stream)) return GetOutput (); throw new ArgumentException ("type"); } diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigExcC14NTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigExcC14NTransform.cs index 81b721a1f0c..83f2bb8ecb9 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigExcC14NTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigExcC14NTransform.cs @@ -117,7 +117,7 @@ namespace System.Security.Cryptography.Xml { public override object GetOutput (Type type) { - if (type == Type.GetType ("Stream")) + if (type == typeof (Stream)) return GetOutput (); throw new ArgumentException ("type"); } diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs index e68249b9b1f..2e3911a5713 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/XmlDsigXsltTransform.cs @@ -126,7 +126,7 @@ namespace System.Security.Cryptography.Xml public override object GetOutput (Type type) { - if (type != Type.GetType ("System.IO.Stream")) + if (type != typeof (Stream)) throw new ArgumentException ("type"); return GetOutput (); } |