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

◆ IsPublicOnly()

bool System.Reflection.NullabilityInfoContext.IsPublicOnly ( bool isPrivate,
bool isFamilyAndAssembly,
bool isAssembly,
Module module )
inlineprivate

Definition at line 226 of file NullabilityInfoContext.cs.

227 {
229 {
230 value = PopulateAnnotationInfo(module.GetCustomAttributesData());
232 }
233 if (value == NotAnnotatedStatus.None)
234 {
235 return false;
236 }
237 if (((isPrivate || isFamilyAndAssembly) && value.HasFlag(NotAnnotatedStatus.Private)) || (isAssembly && value.HasFlag(NotAnnotatedStatus.Internal)))
238 {
239 return true;
240 }
241 return false;
242 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
NotAnnotatedStatus PopulateAnnotationInfo(IList< CustomAttributeData > customAttributes)
readonly Dictionary< Module, NotAnnotatedStatus > _publicOnlyModules

References System.Reflection.NullabilityInfoContext._publicOnlyModules, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Reflection.NullabilityInfoContext.PopulateAnnotationInfo(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Reflection.NullabilityInfoContext.IsPrivateOrInternalFieldAndAnnotationDisabled(), and System.Reflection.NullabilityInfoContext.IsPrivateOrInternalMethodAndAnnotationDisabled().