Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IntrospectionExtensions.cs
Go to the documentation of this file.
1
namespace
System.Reflection
;
2
3
public
static
class
IntrospectionExtensions
4
{
5
public
static
TypeInfo
GetTypeInfo
(
this
Type
type
)
6
{
7
if
(
type
==
null
)
8
{
9
throw
new
ArgumentNullException
(
"type"
);
10
}
11
if
(
type
is
IReflectableType
reflectableType)
12
{
13
return
reflectableType.GetTypeInfo();
14
}
15
return
new
TypeDelegator
(
type
);
16
}
17
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Reflection.IntrospectionExtensions.GetTypeInfo
static TypeInfo GetTypeInfo(this Type type)
Definition
IntrospectionExtensions.cs:5
System.Reflection.IntrospectionExtensions
Definition
IntrospectionExtensions.cs:4
System.Reflection.TypeDelegator
Definition
TypeDelegator.cs:7
System.Reflection.TypeInfo
Definition
TypeInfo.cs:7
System.Type
Definition
Type.cs:14
System.Reflection.IReflectableType
Definition
IReflectableType.cs:4
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.ExceptionArgument.type
@ type
source
System.Private.CoreLib
System.Reflection
IntrospectionExtensions.cs
Generated by
1.10.0