Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ParseNullableState()

static bool System.Reflection.NullabilityInfoContext.ParseNullableState ( IList< CustomAttributeData > customAttributes,
int index,
ref NullabilityState state )
inlinestaticprivate

Definition at line 331 of file NullabilityInfoContext.cs.

332 {
333 foreach (CustomAttributeData customAttribute in customAttributes)
334 {
335 if (customAttribute.AttributeType.Name == "NullableAttribute" && customAttribute.AttributeType.Namespace == "System.Runtime.CompilerServices" && customAttribute.ConstructorArguments.Count == 1)
336 {
337 object value = customAttribute.ConstructorArguments[0].Value;
338 if (value is byte b)
339 {
341 return true;
342 }
344 {
346 return true;
347 }
348 break;
349 }
350 }
351 return false;
352 }
static NullabilityState TranslateByte(object value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.index, System.state, System.Reflection.NullabilityInfoContext.TranslateByte(), and System.value.

Referenced by System.Reflection.NullabilityInfoContext.CheckGenericParameters(), and System.Reflection.NullabilityInfoContext.GetNullabilityInfo().