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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hanna <jon@hackcraft.net>2017-02-22 05:35:56 +0300
committerJon Hanna <jon@hackcraft.net>2017-02-22 05:35:56 +0300
commitaf5f9a3ec266703c205879de9950e5e7cdb2e5ec (patch)
tree6500a5a7fdafdca95901036059e6fd8c63d26b26 /src/System.Private.Xml/tests/Xslt
parent0304965b4ef8255cf8e568da08774e193caf90ad (diff)
Remove unnecessary calls to GetTypeInfo() in System.Private.Xml
Contributes to #16305
Diffstat (limited to 'src/System.Private.Xml/tests/Xslt')
-rw-r--r--src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs6
-rw-r--r--src/System.Private.Xml/tests/Xslt/XslTransformApi/ExceptionVerifier.cs6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
index 59b6d10a0c..aeeee05282 100644
--- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
+++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
@@ -27,14 +27,14 @@ namespace System.Xml.Tests
public static MethodInfo GetInstanceMethod(Type type, string methName)
{
- MethodInfo methInfo = type.GetTypeInfo().GetMethod(methName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
+ MethodInfo methInfo = type.GetMethod(methName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
Debug.Assert(methInfo != null, "Instance method " + type.Name + "." + methName + " not found");
return methInfo;
}
public static MethodInfo GetStaticMethod(Type type, string methName)
{
- MethodInfo methInfo = type.GetTypeInfo().GetMethod(methName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
+ MethodInfo methInfo = type.GetMethod(methName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
Debug.Assert(methInfo != null, "Static method " + type.Name + "." + methName + " not found");
return methInfo;
}
@@ -3463,7 +3463,7 @@ param2 (correct answer is 'local-param2-arg'): local-param2-arg
DynamicMethod hello = new DynamicMethod("Hello",
typeof(int),
new Type[] { },
- typeof(string).GetTypeInfo().Module);
+ typeof(string).Module);
ILGenerator il = hello.GetILGenerator(256);
il.Emit(OpCodes.Ret);
diff --git a/src/System.Private.Xml/tests/Xslt/XslTransformApi/ExceptionVerifier.cs b/src/System.Private.Xml/tests/Xslt/XslTransformApi/ExceptionVerifier.cs
index cfff436861..9612d43bcf 100644
--- a/src/System.Private.Xml/tests/Xslt/XslTransformApi/ExceptionVerifier.cs
+++ b/src/System.Private.Xml/tests/Xslt/XslTransformApi/ExceptionVerifier.cs
@@ -107,7 +107,7 @@ namespace System.Xml.Tests
case "SYSTEM.XML":
{
var dom = new XmlDocument();
- _asm = dom.GetType().GetTypeInfo().Assembly;
+ _asm = dom.GetType().Assembly;
}
break;
default:
@@ -186,7 +186,7 @@ namespace System.Xml.Tests
private static string GetRuntimeInstallDir()
{
// Get mscorlib path
- var s = typeof(object).GetTypeInfo().Module.FullyQualifiedName;
+ var s = typeof(object).Module.FullyQualifiedName;
// Remove mscorlib.dll from the path
return Directory.GetParent(s).ToString() + "\\";
}
@@ -200,7 +200,7 @@ namespace System.Xml.Tests
// Use reflection to obtain "res" property value
var exceptionType = _ex.GetType();
var fInfo = exceptionType.GetField("res", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase) ??
- exceptionType.GetTypeInfo().BaseType.GetField("res", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase);
+ exceptionType.BaseType.GetField("res", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase);
if (fInfo == null)
throw new VerifyException("Cannot obtain Resource ID from Exception.");