Description
The PackageType
property represents the type of the package within the ProjectConfig
class. This property is marked as obsolete, and it is recommended to compare the string Type
instead. The property is ignored during JSON serialization due to the JsonIgnore
attribute.
Usage
Use the PackageType
property to access the type of the package in a ProjectConfig
instance. However, since this property is obsolete, it is advisable to use the Type
property for comparisons instead.
Example
// Example of accessing the PackageType property
var projectConfig = new ProjectConfig();
var packageType = projectConfig.PackageType; // Obsolete, use projectConfig.Type instead
// Recommended usage
var type = projectConfig.Type; // Use this for type comparisons