public Context(
     StringBuilder bindingPathBuilder,
     BindingSource bindingSource,
     XamlElementNameProvider xamlElementNameProvider,
     BindingSourceProvider bindingSourceProvider,
     HashSet <string> externAliases)
 {
     this.XamlElementNameProvider = xamlElementNameProvider;
     this.BindingSourceProvider   = bindingSourceProvider;
     this.ExternAliases           = externAliases;
     this.BindingPathBuilder      = bindingPathBuilder;
     this.BindingSource           = bindingSource;
 }
 public Context(
     XamlElementNameProvider xamlElementNameProvider,
     BindingSourceProvider bindingSourceProvider,
     BindingSource bindingSource = null,
     List <BindingContainerInfo> containerInfos      = null,
     StringBuilder bindingContainerSourceCodeBuilder = null,
     HashSet <string> externAliases = null,
     bool hasCodeBehind             = false)
 {
     this.XamlElementNameProvider           = xamlElementNameProvider;
     this.BindingSourceProvider             = bindingSourceProvider;
     this.ExternAliases                     = externAliases;
     this.BindingContainerSourceCodeBuilder = bindingContainerSourceCodeBuilder ?? new StringBuilder();
     this.BindingContainerInfos             = containerInfos ?? new List <BindingContainerInfo>();
     this.BindingSource                     = bindingSource;
     this.HasCodeBehind                     = hasCodeBehind;
 }