private static dynamic TryGetConnectedProperty(object obj, string name) { try { return(ConnectedProperty.Get(obj, name)); } catch (InvalidOperationException) { return(null); } }
private static string ReadName(object obj) => ConnectedProperty.Get(obj, "Name");