Extension methods to help manage ICustomPackageData on PackageFile objects.
More...
Extension methods to help manage ICustomPackageData on PackageFile objects.
◆ GetCustomData< T >()
static IEnumerable< T > OpenTap.Package.PackageFileExtensions.GetCustomData< T > |
( |
this PackageFile |
file | ) |
|
|
inlinestatic |
Returns all elements attached to the PackageFile of the specified custom data type.
- Template Parameters
-
- Parameters
-
- Returns
- List of ICustomPackageData
◆ HasCustomData< T >()
static bool OpenTap.Package.PackageFileExtensions.HasCustomData< T > |
( |
this PackageFile |
file | ) |
|
|
inlinestatic |
Returns if a specific custom data type is attached to the PackageFile.
- Template Parameters
-
- Parameters
-
- Returns
- True if PackageFile has elements of specified custom types
◆ RemoveCustomData< T >()
static void OpenTap.Package.PackageFileExtensions.RemoveCustomData< T > |
( |
this PackageFile |
file | ) |
|
|
inlinestatic |
Removes all elements of a specific custom type that are attached to the PackageFile.
- Template Parameters
-
- Parameters
-