MrKWatkins.Reflection 1.3.1 Help

TypeExtensions.IsPublic Method

Definition

Returns true if the type is public, nested or not, i.e. its Accessibility is Public; false otherwise.

public static bool IsPublic(this Type type);

Parameters

Name

Type

Description

type

Type

The type.

Returns

Boolean

true if the type is Public; false otherwise.

Remarks

Differs from IsPublic; that property returns false if the type is nested, this method returns true for nested types.

Last modified: 17 December 2024