コード例 #1
0
 public bool TryGetValue(string key, out ReadWriteProperty <T> value)
 {
     try
     {
         return(_properties.TryGetValue(key, out value));
     }
     catch (KeyNotFoundException)
     {
         throw new KeyNotFoundException($"The read only property {key} was not found.");
     }
 }
コード例 #2
0
 public bool TryGetProperty(string propertyName, out ReadWriteProperty <T> property)
 {
     return(_properties.TryGetValue(propertyName, out property));
 }