public TemplateManager(Uri rootUri, TemplateOptions options)
        {
            if (rootUri == null)
                throw new ArgumentNullException("rootUri");

            if (options == null)
                throw new ArgumentNullException("options", "The Template Options is Null.");

            this.Options = options;
            this.TemplateLocation = new Uri(rootUri, this.Options.TemplateLocation);
        }
 internal void ReplaceFieldKey(ref System.Text.StringBuilder builder, TemplateOptions options)
 {
     object refVal = this.Value ?? options.NullDisplayText;
     string replacementValue = (this.HasFormatString) ? string.Format(CultureInfo.CurrentUICulture, this.FormatString, (refVal ?? "")) : (refVal ?? "").ToString();
     builder.Replace(this.fieldKey.ToString(), replacementValue);
 }
 public TemplateManager(string rootPath, TemplateOptions options)
     : this(new Uri(rootPath), options)
 {
 }