Access class property passed as generic type
问题 I have two classes, which are passed to Serialization method and I would like to access two properties of these classes in Serialization method. The problem is that Serialization method parameter are passed as generic type and I do not know how to access properties of passed class in this case. The example below. public class MyClass1 { public string MyProperty1 { get; set; } //These properties are shared in both classes public bool Result { get; set; } public string EngineErrorMessage { get;