Skip to content

Commit

Permalink
docs: Update wording a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlydog committed Aug 18, 2023
1 parent 02c062a commit 51a510e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ The results of using the different methods to reference a PowerShell native clas
If I use `using module` to include the file with the class, then the class cannot be used by the module functions, and the class type cannot be used outside of the module.
Simply put, it does not work at all (strangely though it worked when testing on my local machine 🤷‍♂️, so it seems unreliable at best).

If I dot-source the file with the class, then the class can be used by the module functions, but the class type still cannot be used outside of the module.
If I dot-source the file with the class, then the class can be used by the module functions, but the class type cannot be referenced outside of the module.
Anytime the class name is referenced you get the `Unable to find type` error.

If I define the class in the psm1 file, then the class can be used by the module functions (both as output, and input parameters), and the class type can be used outside of the module.
If I define the class in the psm1 file, then the class can be used by the module functions, and the class type can be used outside of the module.

Enums behaved the same as classes in all of the tests that were performed.

Expand Down

0 comments on commit 51a510e

Please sign in to comment.