From 992ddbcc1782e65cc2224d6102519b1d86295f67 Mon Sep 17 00:00:00 2001 From: Gabe Stocco <98900+gfs@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:43:29 -0700 Subject: [PATCH] Update README.md The Namespace is defined as "PackageUrl" but the class is defined as "PackageURL". Updates usage instructions to match the correct casing. * Fix capitalization of PackageURL class in Usage section. * Update Installation section to refer to latest version. --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ae478f8..7325c5c 100644 --- a/README.md +++ b/README.md @@ -32,20 +32,25 @@ dotnet add package packageurl-dotnet or in project file, add: ```xml - + ``` Usage ------------------- +Import namespace: +```c# +import PackageUrl; +``` + Creates a new PURL object from a string: ```c# -PackageUrl purl = new PackageUrl(purlString); +PackageURL purl = new PackageURL(purlString); ```` Creates a new PURL object from purl parameters: ```c# -PackageUrl purl = new PackageUrl(type, namespace, name, version, qualifiers, subpath); +PackageURL purl = new PackageURL(type, namespace, name, version, qualifiers, subpath); ```` License