Fixes: U4-4855 Can't use macro parameters at all

This commit is contained in:
Shannon
2014-05-12 13:48:56 +10:00
parent f1a312b14a
commit cca27e064a
8 changed files with 111 additions and 69 deletions

View File

@@ -8,13 +8,22 @@ namespace Umbraco.Core.Models
/// <summary>
/// A macro's property collection
/// </summary>
public class MacroPropertyCollection : ObservableDictionary<string, IMacroProperty>
public class MacroPropertyCollection : ObservableDictionary<string, IMacroProperty>, IDeepCloneable
{
public MacroPropertyCollection()
: base(property => property.Alias)
{
}
public object DeepClone()
{
var clone = new MacroPropertyCollection();
foreach (var item in this)
{
clone.Add((IMacroProperty)item.DeepClone());
}
return clone;
}
}
}