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