using System; public class A { public B MyProperty { get;set; } } public class B { public string Text { get;set; } } static class PropertyEval { public static string GetValueFromProperty(this object obj, string Name) { var methods = Name.Split(new [] {"."}, StringSplitOptions.RemoveEmptyEntries); object current = obj; object result = null; foreach(var method in methods) { var prop = current.GetType().GetProperty(method); result = prop != null ? prop.GetValue(current, null) : null; current = result; } return result.ToString(); } } public class Test { public static void Main() { A a = new A(); a.MyProperty = new B() { Text = "Success" }; Console.WriteLine(PropertyEval.GetValueFromProperty(a, "MyProperty.Text")); } }