summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs')
-rw-r--r--src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs b/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs
new file mode 100644
index 0000000000..ce2630a908
--- /dev/null
+++ b/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs
@@ -0,0 +1,35 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*=============================================================================
+**
+**
+**
+**
+**
+** Purpose: go from type to type info
+**
+**
+=============================================================================*/
+
+namespace System.Reflection
+{
+ using System.Reflection;
+
+ public static class IntrospectionExtensions
+ {
+ public static TypeInfo GetTypeInfo(this Type type){
+ if(type == null){
+ throw new ArgumentNullException("type");
+ }
+ var rcType=(IReflectableType)type;
+ if(rcType==null){
+ return null;
+ }else{
+ return rcType.GetTypeInfo();
+ }
+ }
+ }
+}
+