// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002628/type-getobject
// @nuget: Z.ExtensionMethods
using System;
public class Program
{
public static void Main()
Type type = typeof(MyClass);
MyClass myObj = null;
// C# Extension Method: Type - GetObject
myObj = (MyClass)type.GetObject("http://localhost:1234/Simple");
myObj.Val = "Value";
Console.WriteLine(myObj.Val);
}
public class MyClass
public string Val {get; set;}