Пример #1
0
 public object this[string name]
 {
     get {
         try
         {
             return Get(name);
         }
         catch (Exception ex)
         {
             var eventArgs = new DeserializationErrorEventArgs() { Exception = ex };
             DeserializationError(this, eventArgs);
             if (!eventArgs.ExceptionHandled)
                 throw ex;
             else
                 return null;
         }
     }
     set {
         Set(name, value);
     }
 }
 internal void RaiseDeserializationError(object sender, DeserializationErrorEventArgs e)
 {
     DeserializationError(sender, e);
 }