object obj = "Hello, world!"; Type objectType = obj.GetType(); Console.WriteLine("Type of obj is: {0}", objectType.Name);In this example, we first create an object of type string and assign it to the variable obj. We then call the GetType method on obj to retrieve its runtime type and assign it to a variable named objectType. Finally, we use the Name property of the Type object to print the name of the object's type to the console. The package library for ObjectType is the .NET Framework, which is a software framework developed by Microsoft that provides a large class library and runtime environment for creating, deploying, and running applications on Windows-based systems.