Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.Reflection.ReflectionExtensions Class Reference

Static Public Member Functions

static Type GetCompatibleGenericBaseClass (this Type type, Type baseType, Type objectType=null, bool sourceGenType=false)
 
static Type GetCompatibleGenericInterface (this Type type, Type interfaceType)
 
static bool IsImmutableDictionaryType (this Type type, bool sourceGenType=false)
 
static bool IsImmutableEnumerableType (this Type type, bool sourceGenType=false)
 
static string GetImmutableDictionaryConstructingTypeName (this Type type, bool sourceGenType=false)
 
static string GetImmutableEnumerableConstructingTypeName (this Type type, bool sourceGenType=false)
 
static bool IsVirtual (this PropertyInfo propertyInfo)
 
static bool IsKeyValuePair (this Type type, Type keyValuePairType=null)
 
static bool TryGetDeserializationConstructor ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] this Type type, bool useDefaultCtorInAnnotatedStructs, out ConstructorInfo deserializationCtor)
 
static object GetDefaultValue (this ParameterInfo parameterInfo)
 
static bool IsNullableOfT (this Type type)
 
static bool CanBeNull (this Type type)
 
static bool IsAssignableFromInternal (this Type type, Type from)
 

Static Private Member Functions

static bool OpenGenericTypesHaveSamePrefix (Type t1, Type t2)
 
static string GetBaseNameFromGenericType (Type genericType, bool sourceGenType)
 
static string GetBaseNameFromGenericTypeDef (Type genericTypeDef)
 
static bool HasJsonConstructorAttribute (ConstructorInfo constructorInfo)
 

Static Private Attributes

static readonly Type s_nullableType = typeof(Nullable<>)
 

Detailed Description

Definition at line 9 of file ReflectionExtensions.cs.


The documentation for this class was generated from the following file: