public static ConditionCollectionProxy CreateConditionCollectionProxy(this IFeaturingConditions target, Proxy parent) { var proxy = parent.Provider.CreateProxy <ConditionCollectionProxy>(parent.Mode); proxy.Target = target; return(proxy); }
public static void UpdateFromConditionCollectionProxy(this IFeaturingConditions target, IConditionCollection value) { if (value == null) { throw new ArgumentNullException("value", "Cannot assign a NULL to a collection."); } target.Conditions = ((ConditionCollectionProxy)value).CopyFieldCollection(); }