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
property instead. The PackageType
property is ignored during JSON serialization due to the JsonIgnore
attribute.
Usage
To determine the type of a package, it is advised to use the Type
property of the ProjectConfig
class instead of PackageType
. The PackageType
property is maintained for backward compatibility but should be avoided in new implementations.
Example
// Example of accessing the PackageType property (not recommended)
var projectConfig = new ProjectConfig();
var packageType = projectConfig.PackageType; // Obsolete, use projectConfig.Type instead
// Recommended usage
var packageTypeString = projectConfig.Type; // Use this to determine the package type