public static void AddPropertyValue(this LibraryItem item, LibraryItemPropertyLibraryItemName 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, String libraryItemName)
 {
     var propertyValue = new LibraryItemPropertyLibraryItemName()
     {
         PropertyName = propertyName,
         LibraryItemName = libraryItemName
     };
     item.AddPropertyValue(propertyValue);
     return item;
 }