Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Reflection.NullabilityInfoContext Class Referencesealed

Public Member Functions

NullabilityInfo Create (ParameterInfo parameterInfo)
 
NullabilityInfo Create (PropertyInfo propertyInfo)
 
NullabilityInfo Create (EventInfo eventInfo)
 
NullabilityInfo Create (FieldInfo fieldInfo)
 

Properties

static bool IsSupported = !AppContext.TryGetSwitch("System.Reflection.NullabilityInfoContext.IsSupported", out var isEnabled) || isEnabled [get]
 

Private Types

enum  NotAnnotatedStatus { None = 0 , Private = 1 , Internal = 2 }
 

Private Member Functions

NullabilityState GetNullableContext (MemberInfo memberInfo)
 
void CheckParameterMetadataType (ParameterInfo parameter, NullabilityInfo nullability)
 
void CheckNullabilityAttributes (NullabilityInfo nullability, IList< CustomAttributeData > attributes)
 
bool IsPrivateOrInternalMethodAndAnnotationDisabled (MethodInfo method)
 
bool IsPrivateOrInternalFieldAndAnnotationDisabled (FieldInfo fieldInfo)
 
bool IsPublicOnly (bool isPrivate, bool isFamilyAndAssembly, bool isAssembly, Module module)
 
NotAnnotatedStatus PopulateAnnotationInfo (IList< CustomAttributeData > customAttributes)
 
NullabilityInfo GetNullabilityInfo (MemberInfo memberInfo, Type type, IList< CustomAttributeData > customAttributes)
 
NullabilityInfo GetNullabilityInfo (MemberInfo memberInfo, Type type, IList< CustomAttributeData > customAttributes, int index)
 
void TryLoadGenericMetaTypeNullability (MemberInfo memberInfo, NullabilityInfo nullability)
 
void CheckGenericParameters (NullabilityInfo nullability, MemberInfo metaMember, Type metaType)
 
void UpdateGenericArrayElements (NullabilityInfo elementState, MemberInfo metaMember, Type metaType)
 

Static Private Member Functions

static MethodInfo GetMethodMetadataDefinition (MethodInfo method)
 
static void EnsureIsSupported ()
 
static bool ParseNullableState (IList< CustomAttributeData > customAttributes, int index, ref NullabilityState state)
 
static MemberInfo GetMemberMetadataDefinition (MemberInfo member)
 
static Type GetPropertyMetaType (PropertyInfo property)
 
static NullabilityState TranslateByte (object value)
 
static NullabilityState TranslateByte (byte b)
 

Private Attributes

readonly Dictionary< Module, NotAnnotatedStatus_publicOnlyModules = new Dictionary<Module, NotAnnotatedStatus>()
 
readonly Dictionary< MemberInfo, NullabilityState_context = new Dictionary<MemberInfo, NullabilityState>()
 

Detailed Description

Definition at line 7 of file NullabilityInfoContext.cs.


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