public static BindableDomainObjectImplementation Create(BindableDomainObject wrapper) { ArgumentUtility.CheckNotNull("wrapper", wrapper); Assertion.DebugAssert(!TypeExtensions.CanAscribeTo(typeof(BindableDomainObjectImplementation), typeof(Mixin <,>)), "we assume the mixin does not have a base object"); var impl = new BindableDomainObjectImplementation(wrapper); ((IInitializableMixin)impl).Initialize(wrapper, null, false); return(impl); }
protected BindableDomainObjectImplementation(BindableDomainObject wrapper) { ArgumentUtility.CheckNotNull("wrapper", wrapper); _wrapper = wrapper; }