public LocationBindingFactory <TILocationContainer> For <TDataItem>(Action <LocationBindingBuilder <TILocationContainer, TDataItem> > action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            Binder = new LocationBinding <TILocationContainer, TDataItem>();
            var builder = new LocationBindingBuilder <TILocationContainer, TDataItem>((LocationBinding <TILocationContainer, TDataItem>)Binder);

            action(builder);

            return(this);
        }
Exemple #2
0
 public LocationBindingBuilder(LocationBinding <TLocationContainer, TDataItem> locationBinding)
 {
     this.locationBinding = locationBinding;
 }