public static void AddPropertyValue(this LibraryItem item, LibraryItemPropertyValue propertyValue)
 {
     if (item.PropertiesInitialization == null)
     {
         item.PropertiesInitialization = new[] { propertyValue };
     }
     else
     {
         Array.Resize<object>(ref item.PropertiesInitialization, item.PropertiesInitialization.Length + 1);
         item.PropertiesInitialization[item.PropertiesInitialization.Length - 1] = propertyValue;
     }
 }
 public static LibraryItem AddPropertyValue(this LibraryItem item, string propertyName, object value)
 {
     var propertyValue = new LibraryItemPropertyValue()
     {
         PropertyName = propertyName,
         Value = value
     };
     item.AddPropertyValue(propertyValue);
     return item;
 }