Пример #1
0
 private bool UpdateProperty(ICloudBlob blob, string name, string value)
 {
     var property = blob.Properties.GetType().GetProperty(name.Replace("-", ""));
     if (property != null)
     {
         property.SetValue((object)blob.Properties, (object)value);
         var method = blob.GetType().GetMethod("SetProperties");
         if (method != null)
         {
             method.Invoke(blob, new object[]{null,null,null});
             return true;
         }
     }
     return false;
 }