Пример #1
0
 private void HandleValue(object value)
 {
     if (value == null)
     {
         Container = new StorageValueContainer(null);
     }
     else if (value is StorageValueContainer)
     {
         Container = value as StorageValueContainer;
     }
     else if (value is StorageValueProvider)
     {
         Container = new StorageValueContainer(null);
         Provider = value as StorageValueProvider;
     }
     else
     {
         Container = new StorageValueContainer(value);
     }
 }
Пример #2
0
 private void HandleValue(object value)
 {
     if (value == null)
     {
         Container = new StorageValueContainer(null);
     }
     else if (value is StorageValueContainer)
     {
         Container = value as StorageValueContainer;
     }
     else if (value is StorageValueProvider)
     {
         Container = new StorageValueContainer(null);
         Provider  = value as StorageValueProvider;
     }
     else
     {
         Container = new StorageValueContainer(value);
     }
 }
Пример #3
0
 public void Invoke(StorageValueContainer container)
 {
     _provider.Invoke(container);
 }
Пример #4
0
 public void Invoke(StorageValueContainer container)
 {
     _provider.Invoke(container);
 }