예제 #1
0
 /// <summary>
 ///     Add sections of content to the URN separated by ':'. Each section will
 ///     be individually escaped.
 /// </summary>
 /// <param name="content">The content sections to add.</param>
 /// <returns></returns>
 public ISectionedContent WithSectionedContent(params string[] content)
 {
     this.namespaceSpecificString = new SectionedNamespaceSpecificString(content);
     return(this);
 }
예제 #2
0
 /// <summary>
 ///     Add a custom namespace specific string to the URN.
 /// </summary>
 /// <typeparam name="TNss">The type of NSS to add.</typeparam>
 /// <param name="content">The NSS to add that contains the content for the URN.</param>
 /// <returns></returns>
 public IBuildableUrn WithCustomNss <TNss>(TNss content)
     where TNss : NamespaceSpecificString
 {
     this.namespaceSpecificString = content;
     return(this);
 }
예제 #3
0
 /// <summary>
 ///     Add raw content to the URN, this will be escaped.
 /// </summary>
 /// <param name="content">The content to add.</param>
 /// <returns></returns>
 public IRawUrn WithRawContent(string content)
 {
     this.namespaceSpecificString = new RawNamespaceSpecificString(content);
     return(this);
 }