Powershell Core 6.2 Cookbook
上QQ阅读APP看书,第一时间看更新

Manipulating and extending objects

In this recipe, we will get our hands dirty and use reflection to examine objects and change read-only properties. You will learn the difference between properties and fields and what they are normally used for.

You will also learn how to extend objects on-the-fly using Add-Member. We will explore the different member types and how they can be used.