Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ReflectionContext.cs
Go to the documentation of this file.
1
namespace
System.Reflection
;
2
3
public
abstract
class
ReflectionContext
4
{
5
public
abstract
Assembly
MapAssembly
(
Assembly
assembly);
6
7
public
abstract
TypeInfo
MapType
(
TypeInfo
type
);
8
9
public
virtual
TypeInfo
GetTypeForObject
(
object
value
)
10
{
11
if
(
value
==
null
)
12
{
13
throw
new
ArgumentNullException
(
"value"
);
14
}
15
return
MapType
(
value
.GetType().GetTypeInfo());
16
}
17
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Reflection.Assembly
Definition
Assembly.cs:16
System.Reflection.ReflectionContext.MapType
TypeInfo MapType(TypeInfo type)
System.Reflection.ReflectionContext.MapAssembly
Assembly MapAssembly(Assembly assembly)
System.Reflection.ReflectionContext.GetTypeForObject
virtual TypeInfo GetTypeForObject(object value)
Definition
ReflectionContext.cs:9
System.Reflection.ReflectionContext
Definition
ReflectionContext.cs:4
System.Reflection.TypeInfo
Definition
TypeInfo.cs:7
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.ExceptionArgument.value
@ value
System.ExceptionArgument.type
@ type
source
System.Private.CoreLib
System.Reflection
ReflectionContext.cs
Generated by
1.10.0